約 6,466,303 件
https://w.atwiki.jp/darwinia_jp/pages/59.html
マップエディター内で使用されるマップ上の建築物の名称です。 マップエディターに関する文献は英語しか見当たらないので、混乱を避けるためにそのままにしておきます。 間違いや疑問点がありましたらBBSをご利用ください。 行 項目 原文 訳文 半角文 1558 buildingname_invalid Invalid 1559 buildingname_factory Factory 1560 buildingname_cave Cave 1561 buildingname_radardish RadarDish 1562 buildingname_laserfence LaserFence 1563 buildingname_controltower ControlTower 1564 buildingname_gunturret GunTurret 1565 buildingname_bridge Bridge 1566 buildingname_powerstation Powerstation 1567 buildingname_tree Tree 1568 buildingname_wall Wall 1569 buildingname_trunkport TrunkPort 1570 buildingname_researchitem ResearchItem 1571 buildingname_library Library 1572 buildingname_generator Generator 1573 buildingname_pylon Pylon 1574 buildingname_pylonstart PylonStart 1575 buildingname_pylonend PylonEnd 1576 buildingname_solarpanel SolarPanel 1577 buildingname_tracklink TrackLink 1578 buildingname_trackjunction TrackJunction 1579 buildingname_trackstart TrackStart 1580 buildingname_trackend TrackEnd 1581 buildingname_refinery Refinery 1582 buildingname_mine Mine 1583 buildingname_yard Yard 1584 buildingname_displayscreen DisplayScreen 1585 buildingname_upgradeport UpgradePort 1586 buildingname_primaryupgrade PrimaryUpgrade 1587 buildingname_incubator Incubator 1588 buildingname_anthill AntHill 1589 buildingname_safearea SafeArea 1590 buildingname_triffid Triffid 1591 buildingname_spiritreceiver SpiritReceiver 1592 buildingname_receiverlink ReceiverLink 1593 buildingname_spiritspawner SpiritSpawner 1594 buildingname_spiritprocessor SpiritProcessor 1595 buildingname_spawnpoint SpawnPoint 1596 buildingname_spawnpopulationlock SpawnPopulationLock 1597 buildingname_spawnpointmaster SpawnPointMaster 1598 buildingname_spawnlink SpawnLink 1599 buildingname_aitarget AITarget 1600 buildingname_aispawnpoint AISpawnPoint 1601 buildingname_blueprintstore BlueprintStore 1602 buildingname_blueprintconsole BlueprintConsole 1603 buildingname_blueprintrelay BlueprintRelay 1604 buildingname_scripttrigger ScriptTrigger 1605 buildingname_spam Spam 1606 buildingname_goddish GodDish 1607 buildingname_staticshape StaticShape
https://w.atwiki.jp/memcache/pages/36.html
HTTP Header Proxy ServerWeb Debugging Proxy LINK SSL Pass-Thu HTTP Header http //www.tohoho-web.com/ex/http.htm http //web-tan.forum.impressrd.jp/e/2010/01/12/7156 Proxy Server http //howto.ysn-jp.com/tor/tor_what.php http //www.atmarkit.co.jp/fwin2k/win2ktips/031autoproxy/autoproxy.html Web Debugging Proxy Fiddler http //www.fiddler2.com/fiddler2/ LINK Studying HTTP http //www.studyinghttp.net/ Smart http //www.rfs.jp/sb/perl/03/03.html HTTPプロトコルとサーバへのリクエスト(FUJITSU) http //jp.fujitsu.com/solutions/sdas/technology/web-apl/01-http-protocol.html
https://w.atwiki.jp/cheapugg058/pages/15.html
As written for Themichael kors store Roots by political correspondent Keli Goff, Ryan reportedly dated an African-American woman while in college Richard Matheson Richard Burton Matheson (born February 20, 1926) is an American author and screenwriter, primarily in the fantasy, horror, and science fiction genres However, the best advantage to ordering Direct TV is in pricedittoTweet{background #fff;padding 10px 12px 10px 50px;margin 0;min-height 48px;color #000;font-size 18px !important;line-height 22px;-moz-border-radius 5px;-webkit-border-radius 5px;} p Even then, I’d weigh that decision very carefully Be sure to watch the BCS Championship 2012 online streaming tv Var zooms smooth snow surface and the less a loss of control at high speeds of risk in relation to boarding or skiing Cheap3 If you hand wash and line dry your bras, they will last longerLast week, I wanted to watch my favorite football team, The Cleveland Browns, play against their arch-rival, the Pittsburgh SteelersJust to give you a glimpse, though, of what these options are, take a look at the list EphedraEphedra is actually sourced from a herbal plan Whilst a scientifically designed and constructed girdle can make one feel and look great, a poorly made one can be very uncomfortable making the wearer feel sore all over In north face outlet online the film, Bond and Melina Havelock become tangled in a web of deception spun by rival Greek businessmen against the backdrop of Cold War spy gamesindent {margin-left 20px;} Thus, it won’t be as effective when used in the long-termS They are not there to provide people with a way to pay their cell phone bill, or provide repair services for cell phones that become inoperable In 1976, academics Jensen and Meckling published a paper, "Theory of the Firm Managerial Behavior, Agency Costs and Ownership Structure", which had the effect of shifting the focus of corporate managers from the business operations (the real market) to the share price (shareholder value, or the expectations market) It has made over 3 million books accessible on the Apple devices for you to read which are not desired at all No matter how good the said team is, they cannot simply win matches with those injuries In the top of the eleventh inning, right fielder Dwight Evans made a sport jerseys spectacular catch of a Joe Morgan line drive and doubled Ken Griffey at first base to preserve the tie The wishes of all these people are now granted - weight loss is now easy with Super Slim Pomegranate She owns and controls her father s business interests, through Cox Enterprises To add salt to the wound, the film won three Golden Raspberry Awards Worst Actor (Cosby), Worst Picture, and Worst Screenplay WI Dept Americans are known to love this sport so much that they play the sport among family and friendsWhen to Use a ColonColons introduce us to sentences As a solo artist, she recorded great music, with singles like "I Hate Myself for Loving You," "Do You Want to Touch Me," and probably most recognizably, "I Love Rock n RollErin AndrewsDaddy issues?5 It is Frank Gore Jersey as follows AmeriTrust Groupe, IncWere you looking for some serious information?So sorry Sherman, a former half back, had torn his meniscus in college, and converted to quarterback his senior year when Shaughnessy installed the T-Formation at the University of Chicago Read more on words to thank a teacherThink back to when you first chose your careertimestamp {font-size 12px;display block;color #999;} p Just plan to have the food cooked at least an hour and a half before the game startstimestamp {font-size 12px;display block;color #999;} p -Wikipedia Dad may have to look for a second job Whatever the drink of choice for the party is, be sure to have plenty on handname { font-weight bold; } div During the War of 1812, the Capitol and the White House in Washington was burned down by the British Namely, NASCAR Michael Turner Jersey Prior to my contacting you, I confirmed a couple of facts about Leo Wanta/$27author img {float left; margin 0px 7px 0px 0px;} p Dallas9 I hope that CNBC continues to feature Seeking Alpha, but the process should be more disciplined Since that issue, Tebow has appeared on the cover five times as a Gator and once so far as a Denver Bronco In as short as a few weeks of use (even a few days for some), you can shed off excess pounds, lower down those cravings, and enjoy a slimmer, more attractive bodypng);background-repeat no-repeat;} p of Revenue---Tax Appeals Commission There is no way that it is easy being a cheerleader RB Donald Brown 5 10" 210 Stats atJoe Flacco Jersey Connecticut 2,083 Rushing Yards and 18 TD s The Colts are not sure if they can count on RB Joseph Addai to stay healthy for the entire season Thank you for your coverage, I hope all of us can make a contribution to return these funds to the rightful owners, the American people, and put forth to vitally needed infrastructure projects such as education, transportation!
https://w.atwiki.jp/imperionjp/pages/29.html
現在このページは工事中です 民間関係(Civil buildings) +Research facility Research facility 効果:研究開発をする 詳細:さまざまな施設や船を開発可能にしたり基本能力を底上げする。 Research pointsはここでしか稼げないので優先的に拡張すると良い。 Engineering(土木開発) Building lots 施設設置場所を1箇所追加する Building stability 施設の基本防御力を20%上昇させる Geologic exploration 採取地を1箇所追加する Storage capacity 各倉庫の容量を10%上昇させる 研究名 unlock 1 2 3 4 5 6 7 8 9 10 Building lots - 295 440 650 1000 Building stability - 75 Geologic exploration - 650 1000 - - - Storage capacity - 65 Planetary Defense(防衛システム開発) Repair quota 防衛システムの回復量(基本30%)を5%上昇させる Concealment capacity 隠し倉庫の容量を上昇させる Blueprint 設計図:指定されている防衛システムが製造可能になる 研究名 unlock 1 2 3 4 5 6 7 8 9 10 Repair quota - 50 Concealment capacity - 15 35 55 75 95 115 Blueprint Flak battery 10 - - - - - - - - - - Blueprint Puls laser 50 - - - - - - - - - - Blueprint Gauss gun 200 - - - - - - - - - - Blueprint Interval artillery 700 - - - - - - - - - - Blueprint Tachyon emitter 1500 - - - - - - - - - - Blueprint Defense Missile 1 50 - - - - - - - - - - Blueprint Defense Missile 2 300 - - - - - - - - - - Blueprint Bionic Missile 300 - - - - - - - - - - Military Space Travel(軍事開発) Propulsion technology 移動速度を10%上昇させる(太陽系内の移動は適用外) Fuel consumption 隠し倉庫の容量を上昇させる Cargo capacity 資源積載量を5%上昇させる Tank capacity 航続距離を座標1マス分延長する Blueprint 設計図:指定されている戦闘機・ミサイルが製造可能になる 研究名 unlock 1 2 3 4 5 6 7 8 9 10 Propulsion technology - 170 Fuel consumption - 180 Cargo capacity - 90 Tank capacity - 60 85 Blueprint Fighter - - - - - - - - - - Blueprint Battleship 500 - - - - - - - - - - Blueprint Destroyer 550 - - - - - - - - - - Blueprint Heavy Cruiser 8000 - - - - - - - - - - Blueprint Pulsar 7500 - - - - - - - - - - Blueprint Bomber 5000 - - - - - - - - - - Blueprint Attack Missile 1 100 - - - - - - - - - - Blueprint Attack Missile 2 300 - - - - - - - - - - Blueprint Attack Missile 3 1000 - - - - - - - - - - Blueprint Attack Missile 4 3000 - - - - - - - - - - Blueprint Bionic Blast 500 - - - - - - - - - - Civilian Space Travel(民間開発) Recycling 隕石での資源回収時間を半分にする(回収準備時間10分は適用外)/解体回収率を5%上昇させる Worm hole physics 銀河間の移動時間を1時間短縮させる Expansion studies Expansion pointsを(消費research points x 5)増やす Propulsion technology 移動速度を10%上昇させる(太陽系内の移動は適用外) Fuel consumption 隠し倉庫の容量を上昇させる Cargo capacity 資源積載量を5%上昇させる Trade 市場の積載量を20%上昇させる Espionage スパイ能力上昇(Lv1:艦隊数/Lv2:資源量/Lv3:防衛システム/Lv4:研究レベル/Lv5:施設レベル)/隠匿率上昇 Tank capacity 航続距離を座標1マス分延長する Blueprint 設計図:指定されている民間機・ミサイルが製造可能になる 研究名 unlock 1 2 3 4 5 6 7 8 9 10 Recycling - 50 100 200 400 800 Worm hole physics 400 - - - - - - - - - - Expansion studies - 250 Propulsion technology - 75 Fuel consumption - 100 140 Cargo capacity - 100 Trade - 85 Espionage - 150 210 295 Tank capacity - 55 80 Blueprint Probe 220 - - - - - - - - - - Blueprint Tanker 250 - - - - - - - - - - Blueprint Small transporter - - - - - - - - - - Blueprint Large transporter 1200 - - - - - - - - - - Blueprint Recycler - - - - - - - - - - Blueprint Drop ship 400 - - - - - - - - - - Energy technology(エネルギー開発) 各種使用許可/発電量を20%上昇させる 研究名 unlock 1 2 3 4 5 6 7 8 9 10 AEC energy - 70 100 Fusion power 1000 Solar power 100 105 155 Hydropower 300 100 Wind power - 110 165 250 Level EP RP Main RP Sub 1 625 745 1030 0 05 00 20 1 30 10 2 843 1005 1390 0 12 30 26 1 36 12 3 1139 1357 1877 0 21 15 33 1 42 14 4 1537 1832 2534 0 31 53 41 2 48 16 5 2075 2474 3421 0 45 19 50 2 54 18 6 2802 3340 4618 1 02 58 62 2 60 20 7 3783 4509 6235 1 26 57 75 3 66 22 8 5107 6088 8417 2 00 26 91 4 72 24 9 6895 8219 11363 2 48 09 110 4 78 26 10 9308 11095 15340 3 57 13 133 5 84 28 11 12566 14979 20709 5 38 20 161 6 90 30 12 16964 20222 27958 8 07 29 195 7 96 32 13 22902 27299 37743 11 48 44 235 9 102 34 14 30918 36854 50953 17 18 06 285 11 108 36 15 41740 49754 68787 25 29 39 345 13 114 38 16 56349 67168 92863 37 44 28 417 15 120 40 17 76071 90676 125365 56 04 12 506 18 126 42 18 102696 122413 169243 83 31 18 613 22 132 44 19 138639 165258 228478 124 39 28 744 27 138 46 20 187163 223099 308445 186 19 11 903 32 150 50 +Embassy Embassy 効果:Leagueの最大人数を増やす 建設条件:施設 Building yard level 3 詳細:1Lvで既存Leagueの参加が可能。 3Lvで新規Leagueの設立が可能。 現在のExpansion pointsが確認可能。 Level EP 人数 1 640 520 840 0 22 13 11 5 3 2 864 702 1134 0 33 26 15 6 6 3 1166 947 1530 0 46 24 19 7 9 4 1574 1279 2066 1 01 36 24 9 12 5 2125 1727 2790 1 19 38 30 10 15 6 2869 2331 3766 1 41 20 37 12 18 7 3874 3147 5084 2 07 43 45 15 21 8 5230 4249 6864 2 40 04 55 18 24 9 7060 5736 9267 3 20 05 66 21 27 10 9531 7744 12510 4 09 55 79 26 30 11 12868 10455 16889 5 12 17 95 31 33 12 17372 14114 22800 6 30 44 115 37 36 13 23452 19054 30781 8 09 44 138 45 39 14 31660 25724 41554 10 15 03 165 53 42 15 42741 34727 56098 12 54 04 199 64 45 16 57701 46882 75733 16 16 13 240 77 48 17 77896 63291 102239 20 33 33 289 92 51 18 105160 85443 138023 26 01 33 349 111 54 19 141967 115348 186331 32 59 59 421 133 57 20 191655 155720 251548 41 54 11 510 160 60 +Building yard Building yard 効果:建設時間を短縮する 詳細:10Lvで惑星内の不要な施設を破壊可能になる。 大抵の施設の建設条件になるため早期建築が必要。 Level EP 時間% 1 365 220 195 0 23 20 7 2 100 2 467 281 249 0 34 52 10 2 92 3 598 360 319 0 48 14 13 3 84 4 765 461 408 1 03 56 17 3 76 5 979 590 523 1 22 38 22 4 71 6 1254 755 670 1 45 10 26 5 66 7 1605 967 857 2 12 37 32 6 60 8 2054 1238 1097 2 46 21 39 7 55 9 2630 1585 1405 3 28 08 46 9 51 10 3366 2029 1798 4 20 13 55 10 47 11 4309 2597 2302 5 25 28 66 12 43 12 5515 3324 2946 6 47 36 79 15 39 13 7060 4255 3771 8 31 20 94 18 36 14 9036 5446 4827 10 42 42 112 21 33 15 11567 6972 6179 13 29 28 134 26 31 16 14806 8924 7910 17 01 31 161 31 28 17 18951 11423 10124 21 31 32 193 37 26 18 24258 14621 12959 27 15 46 231 44 24 19 31050 18715 16588 34 34 59 278 53 22 20 39744 23955 21233 43 55 47 335 64 20 +Civilian shipyard Civilian shipyard 効果:民間船を建造する 建設条件:施設 Fleet base level 1 建設条件:施設 Building yard level 1 詳細:非戦闘の船を作る施設。 Level EP 時間% 1 865 960 575 0 26 40 15 3 100 2 1107 1228 736 0 39 08 20 4 95 3 1417 1572 942 0 53 41 25 4 90 4 1814 2013 1205 1 10 55 32 5 85 5 2321 2576 1543 1 31 35 39 6 80 6 2972 3298 1975 1 56 38 48 7 75 7 3804 4222 2528 2 27 17 58 9 70 8 4869 5404 3236 3 05 07 71 11 65 9 6232 6917 4143 3 52 09 86 13 60 10 7978 8854 5303 4 50 57 103 15 55 11 10212 11333 6788 6 04 49 125 19 50 12 13071 14507 8689 7 37 59 150 22 45 13 16731 18569 11122 9 35 49 181 27 40 14 21416 23768 14236 12 05 14 218 32 35 15 27412 30423 18222 15 15 06 264 39 30 16 35088 38942 23324 19 16 44 319 46 25 17 44913 49846 29855 24 24 37 385 55 20 18 57489 63802 38215 30 57 18 466 67 19 73586 81667 48915 39 18 33 565 80 20 94190 104534 62611 49 58 45 685 96 +Colonization center Colonization center 効果:移民船を建造する 建設条件:施設 Embassy level 5 詳細:新しい惑星に移住するための船を作る施設。 やたら獲得Expansion pointsが高い。 Level EP 時間% 1 1550 1900 1550 0 55 33 18 15 100 2 1984 2432 1984 1 16 06 23 18 95 3 2539 3112 2539 1 41 01 30 22 90 4 3250 3984 3250 2 11 30 37 26 85 5 4160 5100 4160 2 49 07 46 31 80 6 5325 6528 5325 3 35 52 56 37 75 7 6816 8356 6816 4 34 19 68 45 70 8 8725 10696 8725 5 47 43 83 54 65 9 11168 13690 11168 7 20 17 100 64 60 10 14296 17524 14296 9 17 21 121 77 55 11 18299 22431 18299 11 45 49 146 93 50 12 23422 28711 23422 14 54 27 177 111 45 13 29981 36751 29981 18 54 30 214 134 40 14 38376 47041 38376 24 00 21 258 160 35 15 49121 60213 49121 30 30 27 312 193 30 16 62875 77073 62875 38 48 23 378 231 17 80480 98653 80480 49 24 19 458 277 18 103015 126276 103015 62 56 56 554 333 19 131859 161634 131859 80 15 40 672 399 20 168780 206891 168780 102 23 52 816 479 +Recycling yard Recycling yard 効果:廃棄物の一部返還・デブリの発見 建設条件:施設 Building yard level 5 詳細:不要なユニットを資源に変えたり範囲内のデブリを発見する。 Level EP 最大量 自動回収率 サーチ範囲 1 1470 1085 945 0 38 20 15 2 10000 11% 3 2 1837 1356 1181 0 54 04 20 2 14000 12% 4 3 2296 1695 1476 1 12 48 25 3 20000 13% 4 4 2871 2119 1845 1 35 23 32 3 27000 14% 5 5 3588 2648 2307 2 02 54 39 4 38000 15% 5 6 4486 3311 2883 2 36 43 48 5 54000 16% 6 7 5607 4138 3604 3 18 36 58 6 75000 17% 6 8 7009 5173 4506 4 10 48 71 7 106000 18% 7 9 8761 6467 5632 5 16 13 86 9 150000 19% 7 10 10952 8083 7040 6 38 34 103 10 210000 20% 8 11 13690 10104 8800 8 22 34 125 12 300000 21% 8 12 17113 12631 11001 10 34 17 150 15 400000 22% 9 13 21391 15788 13751 13 21 28 181 18 570000 23% 9 14 26739 19736 17189 16 54 05 218 21 800000 24% 10 15 33423 24670 21486 21 24 50 264 26 1100000 25% 16 41779 30837 26858 27 09 59 319 31 1500000 26% 17 52224 38546 33573 34 30 23 385 37 2100000 27% 18 65281 48183 41966 43 52 41 466 44 3000000 28% 19 81601 60229 52458 55 51 02 565 53 4300000 29% 20 102001 75286 65572 71 09 08 685 64 ∞ 30% +Resource cache Resource cache 効果:隠し倉庫の最大所持量を増やす 詳細:攻められたときに資源を奪われないための施設。 10Lvにすることで2箇所目の建設が可能。 Level EP 各隠蔽量 1 150 125 125 0 10 00 5 1 500 2 192 160 160 0 17 48 8 1 850 3 245 204 204 0 26 23 10 1 1200 4 314 262 262 0 35 58 14 2 1700 5 402 335 335 0 46 51 17 2 2200 6 515 429 429 0 59 22 21 2 2600 7 659 549 549 1 13 59 25 3 3200 8 844 703 703 1 31 18 31 4 3800 9 1080 900 900 1 52 03 37 4 4400 10 1383 1152 1152 2 17 14 43 5 5000 +Trade center Trade center 効果:市場を使用できる 建設条件:施設 Research facility level 1 詳細:他人と資源のトレードが可能。 Titanとは重水素の交換ができない。 Terran/Xenとの制限はない。 Level EP 台数 1 285 625 390 0 10 00 9 4 1 2 364 800 499 0 22 48 12 5 2 3 466 1024 638 0 36 23 16 6 3 4 597 1310 817 0 50 58 21 7 4 5 765 1677 1046 1 06 51 26 8 5 6 979 2147 1340 1 24 22 32 10 6 7 1253 2748 1715 1 43 59 39 12 7 8 1604 3518 2195 2 06 18 47 14 8 9 2053 4503 2810 2 32 03 56 17 9 10 2628 5764 3597 3 02 14 67 21 10 11 3364 7378 4604 3 38 04 81 25 11 12 4306 9444 5893 4 21 07 97 30 12 13 5512 12089 7543 5 13 26 116 36 13 14 7056 15474 9655 6 17 35 139 43 14 15 9032 19807 12359 7 36 55 167 51 15 16 11560 25353 15820 9 15 39 200 62 16 17 14798 32451 20249 11 19 14 241 74 17 18 18941 41538 25919 13 54 37 290 89 18 19 24245 53169 33177 17 10 42 350 106 19 20 31033 68056 42467 21 18 54 422 128 20 +Robot factory Robot factory 効果:船・ロケット・防衛システムの製造時間短縮 建設条件:施設 Shipyard level 10 建設条件:施設 Civilian shipyard level 10 詳細:製造時間をさらに短縮させる。 製造時間=製造対象*各施設の短縮率*工場の短縮率 Level EP 時間% 1 3995 3485 1020 1 33 20 40 2 97.5 2 5113 4460 1305 2 04 28 50 2 95 3 6545 5709 1671 2 42 55 63 3 92.5 4 8378 7308 2139 3 30 44 77 3 90 5 10723 9354 2738 4 30 32 95 4 87.5 6 13726 11974 3504 5 45 41 116 5 85 7 17570 15327 4486 7 20 29 141 6 82.5 8 22489 19618 5742 9 20 25 171 7 80 9 28787 25112 7349 11 52 32 208 9 77.5 10 36847 32143 9407 15 05 51 253 10 75 11 47164 41143 12042 19 11 53 307 12 72.5 12 60370 52663 15413 24 25 25 373 15 70 13 77274 67409 19729 31 05 20 453 18 14 98911 86284 25253 39 35 49 550 21 15 126606 110444 32325 50 27 51 668 26 16 162056 141368 41376 64 21 03 812 31 17 207432 180951 52961 82 06 09 987 37 18 265513 231617 67790 104 48 04 1201 44 19 339857 296471 86772 133 49 55 1461 53 20 435016 379482 111068 170 58 06 1778 64
https://w.atwiki.jp/0x0b/pages/89.html
ハイパーテキスト転送プロトコル RFC 2616 WebブラウザとWebサーバの間でHTMLなどのコンテンツの送受信に用いられる通信プロトコル リクエスト-レスポンス型 トランスポート・プロトコルとして通常TCPを使用 基本的な考え方は非常に単純であり「何を」「どうして」ほしいのかを相手に要求する。「何を」に当たるのがURL、「どうして」がメソッドにあたる。 World Wide WebにおけるWebページなどのリソースは、Uniform Resource Identifierによって指定される。 ポート番号80をデフォルトとして使用する(送信時は8080)。 TLSで暗号化され、セキュリティを確保したHTTPは、HTTPSと呼ばれる(httpsは実際にはURIスキームの1つであり、実際のプロトコルにはHTTP over SSL/TLSが用いられる)。 HTTP は基本的にサーバが状態を保持しない (stateless) プロトコルだが、データベースなどを使用するWebアプリケーションにおいては状態保持が必要だったため、そのためにいわゆる Cookie とよばれる機構が Netscape Communications Corporation によって導入された。Cookie を使用することによって状態を管理し、"セッション" を維持することが可能になる。 HTTPの拡張プロトコルとしてWebDAVがある。 UPnPでは、HTTPをUDP上で使用するHTTPUや、マルチキャストで使用するHTTPMUが規定された。 HTTP/0.9 URLのみの簡単なやりとり HTTP/1.0 NNTPやSMTPのような各種ヘッダが定義 HTTP_Cookieなどの利用 HTTP/1.1 複数データを転送するためのキープアライブ(keep-alive)機能やプロキシなどの利用も想定された仕様 バーチャルホストをサポートした。インターネット人気に伴い多くの企業がWebサイトを持ち始めたが、当時ではまだまだ企業が自前のWebサーバを運用するのは人員、効率の問題で難しかったためISPのサーバでホスティングをしていた。当時はまだ一社ごとに専用サーバを用意するほどのことでもないため一台のサーバで複数のWebサイトを運用していた。 しかしバーチャルホストには問題がある。例えばある1台のサーバに foo.example.com と bar.example.com という二つの仮想Webサーバがあるとする。ここではクライアントは http //foo.example.com/index.html にアクセスしたいとする。そのためにはまず foo.example.com をIPアドレスに解決するためDNSサーバに問い合わせ、そのサーバにアクセスし GET index.html を要求する。しかしサーバ側のIPアドレスは foo.example.com と bar.example.com 共におなじIPアドレスである。もし foo.example.com にも bar.example.com にも index.html というファイルが存在すればクライアントはどちらのサーバにアクセスしたのかわかるすべがない。 これを解決するにはそれぞれにIPアドレスを付与することで解決できるが、IPv4の資源を無駄にすることになる。 HTTP/1.1ではこれを解決するためにHostヘッダを追加した。 HTTP/1.0のヘッダ GET /index.html HTTP/1.0 HTTP/1.1のヘッダ GET /index.html HTTP/1.1 Host foo.example.com 動作 通信の開始 他のプロトコル同様クライアント側とサーバ側ではHTTPの役割が大きく異なる。HTTP通信を開始できるのはクライアント側のみである。 クライアント側はサーバにリクエストを送り、サーバはクライアントにレスポンスを返すのが最も典型的なHTTPのやりとりである。 接続 システム間でメッセージをやりとりするにはTCP接続を確立させる必要がある。 HTTP/0.9ではクライアントのリクエストごとにTCP接続を確立させる必要があったが、これは当時のWebサイトがシンプルなテキストベースであることが多かったためである。近年ではJavaScriptやアニメーション画像など、多数のオブジェクトが埋め込まれたWebサイトが一般的となってきているが、これら全てのオブジェクトを取得するたびにTCP接続を確立するのはサーバやネットワークに大きな負担を強いるため、HTTP/1.1では持続的接続がサポートされることとなった。ただしこの機能が利用できるのはサーバ側がその要求を許可した場合のみである。 パイプライン クライアントは前のリクエストに対するサーバの応答を待たずに別のリクエストを発行できる。 メソッド HTTPでは8つのメソッドが定義されている。ただし実際のHTTP通信ではGETとPOSTメソッドだけで殆どを占める。 HTTPメソッドの一覧 メソッド HTTP/0.9 HTTP/1.0 HTTP/1.1 GET ○ ○ ○ POST ○ ○ PUT △ ○ HEAD ○ ○ DELETE △ ○ OPTION ○ TRACE ○ CONNECT ○ GET 指定されたURIのリソースを取り出す。HTTPの最も基本的な動作で、HTTP/0.9では唯一のメソッド。 POST GETとは反対にクライアントがサーバにデータを送信するメソッドである。Webフォームや電子掲示板、Wikiなどに投稿する。GETの場合と同じくサーバはクライアントにデータを返すことができる。 PUT 指定したURIにリソースを保存する。URIが指し示すリソースが存在しない場合は、サーバはそのURIにリソースを作成する。画像のアップロードなどが代表的。 DELETE 指定したURIのリソースを削除する。 OPTION サーバを調査するメソッド。例えばサーバがサポートしているHTTPのバージョンなどを調査できる。 HEAD GETと似ているがサーバはHTTPヘッダのみ返す。クライアントはWebページを取得せずともそのWebページが存在するかどうかを知ることが出来る。例えばWebページのリンク先が生きているか検証するときなどにリンク先のデータを全て取得することなく調査することが出来る。 TRACE サーバまでのネットワーク経路をチェックできる。サーバは受け取ったメッセージのそれ自体をレスポンスのデータにコピーして応答する。WindowsのTracertやUNIXのTracerouteとよく似た動作。 CONNECT 暗号化したメッセージをプロキシで転送する際に用いる。 サーバの連携 バーチャルホスト リダイレクト 301 MovedというステータスコードとURIを受け取りクライアントはこの受け取ったURIに再度GETを送る。 クッキー(HTTP_Cookie) HTTPメッセージ クライアントからのHTTPリクエストは3つの要素から構成される。それぞれメソッド、URI、HTTPのバージョンでありスペースで区切られている。 下にもっとも単純な、クライアントとサーバ(www.google.co.jp 80)とのHTTPプロトコルのやり取りの例を挙げる。 クライアントのリクエスト GET / HTTP/1.0 GETがメソッド、URIは / 、バージョンはHTTP/1.0であることを示す。 URIは/でルートリソースを対象にしたリクエストであることを示している。TRACEなど特定のサーバを対象としないリクエストの場合には*が表示される。 サーバのレスポンス HTTP/1.0 200 OK Cache-Control private Content-Type text/html Set-Cookie PREF=ID=72c1ca72230dea65 LD=ja TM=1113132863 LM=111 3132863 S=nNO7MIp W2o7Cqeu_; expires=Sun, 17-Jan-2038 19 14 07 GMT; path=/; domain=.google.co.jp Server GWS/2.1 Date Sun, 10 Apr 2005 11 34 23 GMT Connection Close html head meta http-equiv="content-type" content="text/html; charset=Shift_JI S" title Google /title style !-- ・・・以下省略 上のリクエストのGETにあたる部分をメソッドといい、 HTTP/1.0では、GET, HEAD, PUT, POST, DELETE, LINK, UNLINK、 HTTP/1.1ではさらに、OPTIONS, TRACEがある。 GETメソッドのレスポンスにはヘッダ情報のあとに改行が挟まれ、コンテンツ本体が送られる。 HEADメソッドのレスポンスにはコンテンツサイズや更新日時などの情報を含むヘッダのみが送られる。 また、リクエストの2行目以降はヘッダを送る。 HTTPヘッダフィールド ヘッダの各要素は フィールド名 内容 のペアで構成される。 ブラウザの情報を表すUser-Agent、使用候補言語を表すAccept-Language、他ページへのリンクを辿った場合にそのリンク元ページのURLを表すRefererなどが代表的なフィールドである。 なお、リクエスト時のHostヘッダはHTTP/1.1では必須であるが、HTTP/1.0では無くても良い。 但し、サーバがバーチャルホストを利用している場合は、Hostヘッダが無いとリソース取得に失敗するので、たとえHTTP/1.0を使用していてもHostヘッダを付加しなければならない。 HTTPヘッダフィールドの一覧 リクエストヘッダ ヘッダ概要HTTP/0.9HTTP/1.0HTTP/1.1 Acceptクライアントの受け入れ可能コンテンツタイプを示す○○ Accept-Charsetクライアントの受け入れ可能文字セットを示す○○ Accept-Encodingクライアントの受け入れ可能文字エンコーディングを示す○○ Accept-Languageクライアントの受け入れ可能言語を示す○○ Authorizationクライアントの認証情報を示す○○ Cookieクライアントの状態管理情報をサーバに返す Cookie2HTTP/1.1のSet-Cookie2ヘッダの受け入れ可能をサーバに知らせる Expectクライアントがサーバに期待する動作を示す○ Fromリクエスト発行者個人の情報を示す。一般的に電子メールアドレスを使用する○○ Host要求しているオブジェクトがあるホストを示す○ If-Matchif文を用い条件が真の場合のみリクエストを処理するようサーバに要求する○ If-Modified-Since指定日及び指定時刻以降にオブジェクトが変更されている場合のみリクエストを処理するよう要求する○○ If-None-MatchIf-Matchの逆で条件が真でない場合のみリクエストを処理する要求○ If-Range条件が真の場合のみ指定したオブジェクトの範囲を返すようサーバに要求する○ If-Unmodified-SinceIf-Modified-Sinceの逆で真でないときのみ実行する○ Max-Forwardsリクエストの中間システム経由数を最大いくつまでかを指定する○ Proxy-Authorizationクライアントがプロキシサーバに対して自身の認証を行う○ Rangeオブジェクト全体でなくリソースの一部を要求する○ Refererリクエストの出所を示す。一般的にはユーザの辿ったWebページのURLが用いられる。○○ TEレスポンスの受け入れ可能転送エンコーディングを示す○ レスポンスヘッダ ヘッダ概要HTTP/0.9HTTP/1.0HTTP/1.1 Accept-Rangesオブジェクトの一部に対するリクエストをサーバが受け入れ可能か示す○ Ageオブジェクトの経過時間を秒単位で返す○ AllowオブジェクトがサポートするHTTPメソッドを示す○○ ETagオブジェクトのエンティティタグ値を示す○ Locationオブジェクトの場所を示す○○ Proxy-Authenticateプロキシサーバがクライアントに認証を要求するときに用いる○ Retry-Afterリクエストの再試行をいつ行うかをクライアントに通知する○○ Serverサーバのベンダー名、バージョン番号を占めす○○ Set-Cookie2サーバがクライアントにCookieを送信するときに用いる Varyサーバのレスポンス内容を決定する際にリクエストURI以外に使用したHTTPヘッダのリストを示す○ WWW-Authenticateクライアントに対してリクエストの再発行を要求する。認証情報も含まれる○○ 一般ヘッダ ヘッダ概要HTTP/0.9HTTP/1.0HTTP/1.1 Cache-Controlメッセージの経由する中間キャッシュの動作を指示する○ Connection中間システムが転送すべきでないヘッダのリストを示す○○ Dateメッセージの作成日時を示す○○ Pragmaメッセージに関する追加情報を示す○○ Trailerメッセージボディの後に追加のヘッダーが表れることを示す○ Transfer-Encodingクライアントの転送を目的としたオブジェクトのエンコーディングを示す○ Upgrade通信相手に別のプロトコルにアップデートするよう要求する○ User-AgentクライアントのWebブラウザなどの情報を示す○○ Warningメッセージに関する追加情報を示す。通常はキャッシュの問題を警告するときに使われる○ エンティティヘッダ ヘッダ概要HTTP/0.9HTTP/1.0HTTP/1.1 Content-Encodingオブジェクトのエンコーディングを示す○○ Content-Languageオブジェクトの言語(人間の言語)を示す○○ Content-Lengthオブジェクトのサイズをバイト単位で示す○○ Content-Locationオブジェクトの場所を示す○ Content-MD5オブジェクトのメッセージダイジェストを運ぶ○ Content-Rangeメッセージボディで運ばれるオブジェクトの範囲を示す○ Content-Typeオブジェクトのタイプを示す○○ Expiresオブジェクトの有効期限の日時を示す○○ Last-Modifiedオブジェクトが最後に変更された日時を示す○○ Accept サーバのレスポンスに含まれるメッセージボディで受け入れることが出来るコンテンツタイプと各コンテンツタイプの相対的な優先度を指定するリクエストヘッダ。指定できるコンテンツタイプはIANAによって定義されている。 Accept text/plain; q=0.5, text/html, text/x-dvi; q=0.8, text/x-c 上記のようにAcceptヘッダには行をわけて複数のコンテンツタイプを指定できる。上記の例はいずれの4のコンテンツタイプのいずれも受け入れ可能であることを示す。0.5や0.8といった数字は品質係数で0~1の範囲の数値である。数値の指定がなければ1.0となる。 text/plain; q=0.5 text/html text/x-dvi; q=0.8 text/x-c Accept-Charset レスポンスで返されるメッセージボディの文字コードを指定するリクエストヘッダ。Acceptと同じく複数指定でき品質係数も設定できる。定義済み文字セットはIANAが管理している。 Accept-Charset unicode, *; q=0.8 この例だとクライアントはUnicode文字セットを優先的に希望しているが他の文字セットとの相対優先度0.8で受け入れている。ただしサーバからのレスポンスのHTTPヘッダそのものの文字コードは常にISO-8859-1である。 Accept-Encoding Accept-Language レスポンスの言語(人間の言語)に対する優先度を指定する。言語コードはISO-639の2文字の省略コードを用いる。書き方は他のAccept-群と変わらず。 Accept-Language en-gb, en; q=0.8 上記の例はまずイギリス英語を要求し、利用できない場合はその他の英語を要求する。 Accept-Ranges Acceptで始まる他のヘッダフィールドと違いレスポンスヘッダーである。現在の仕様では2つの指定方法しかない。 Age リソースの推定経過時間を表示するレスポンスヘッダ。キャッシュサーバーはAgeヘッダの値からキャッシュしたリソースが有効かどうかを判定する。 Allow Authentication-info ユーザ認証のやりとりの最後で用いられる、成功したレスポンスのサーバが含めることの出来るレスポンスヘッダー。 Authorization サーバに対するクライアント自身の認証を行うことが出来る。 Cache-Control キャッシングの動作を指定するためのマスターヘッダ。 Connection Content-Encoding Content-Language リソースを英語などの自然言語で示すのに使われる。言語の指定はAccept-Languageヘッダと同じ。 Content-Length Content-Location Content-MD5 メッセージボディが変更されず宛先に届くことを保証する。MD5アルゴリズムを実行する。ただし悪意の改ざんに対しては当然MD5も改ざんされるのであまり機能はしない。どちらかといえば偶発的な変更の保証をしている。 Content-Range ダウンロードの再開に用いられる。 Content-Type メッセージボディに含まれるオブジェクトタイプを示す。次の例はリソースがテキストファイル、文字セットはISO-8859-4を使用していることを示している。 Content-Type text/plain; Charset=ISO-8859-4 Cookie クライアントがHTTP状態管理を望む場合にサーバから受け取ったクッキーを以後のリクエストに次の例のようなヘッダーを付加する。 Cookie $Version="1"; NAME="VALUE"; $Path="/shopping"; $domain="www.shop.com"+ $Port="80" $VersionはHTTPのバージョン、NAMEはクッキーの名前である。$から始まるクッキー名は使用が禁止されている。 Cookie2 基本的にCookieヘッダーとCookie2ヘッダーは別物である。 Date サーバがメッセージを生成した日時を示す。リソースの時間を示すLast-Modifiedヘッダーとは区別する必要がある。 HTTP/1.1では次のような形式を用いるようRFC1123で定義されている。 Date Sun, 06, Nov 1994 08 49 37 GMT HTTP仕様ではレスポンスにDateヘッダーを含めることを求めている。ただしレスポンスのステータスがサーバエラーの場合にはDateヘッダーは返らない。 ETag 主にキャッシングのパフォーマンスを向上する目的で使われる。 Expect サーバに対して特定の動作の期待を知らせる。用途としてはクライアントがサーバに対して100 Continueステータスを返すことを期待する場合に使われる。 Expect 100-continue サーバが期待に応じれない場合は417 Expectation Failedを返す。クライアントがいくつかのプロキシ経由で通信している場合、各プロキシサーバはExpectヘッダの一切の修正を許されない。 Expires オブジェクトの有効期限を示す。このヘッダで指定された日時までキャッシュはレスポンスのコピーを保持し、リクエストに対するレスポンスとして返すことが出来る。サーバがオブジェクトのキャッシュを望まない場合にはExpiresヘッダに過去の日時を設定することが多い。また、HTTP仕様では1年以上先の日時は設定できない。 Expires Thu, 28 Aug 2010 16 00 00 GMT Cache-Controlヘッダのmax-ageディレクティブはExpiresヘッダより優先されるため注意が必要である。 From リクエストを発行したユーザを特定することが出来る。1990年代では電子メールアドレスを設定することが多かったが、迷惑メールの問題もあり現在では殆ど使われていない。 From hoge@hogehoge.com Host 主にレンタルサーバのサポートを目的としてHTTP/1.1で導入された。現在ではHostヘッダを利用できない場合レンタルサーバのウェブサイトとまともな通信が出来ないと言ってよい(詳細はHTTP#歴史を参照)。 If-Match クライアントのリクエストを条件付きのリクエストにするために使われる。サーバは一定の条件が真であった場合のみリクエストを受け入れることが出来る。例えばウィキペディアを編集する際、記事のソースを取得し、書き換える際の間に別のユーザが既に編集していないかを判断するときなどに用いられる。 「if文」も参照 利用者:HogeがHTTPの記事を取得。ETagは1234 利用者:HageがHTTPの記事を取得。ETagは1234 利用者:HogeがHTTPのETagを再度取得。先ほど取得したETag 1234と現在のETag 1234が一致。 利用者:HogeがHTTPの記事を編集。ETagは1256になる。 利用者:HageがHTTPのETagを再度取得。先ほど取得したETagと現在のETagはマッチせず。 サーバは利用者:Hageの書き込みを拒否。 If-Modified-Since このヘッダーで指定された日時以降にオブジェクトが変更されている場合のみリクエストに応答するようサーバに要求する。リソースの削減に効果がある。 If-None-Match If-Matchと逆で条件が真でない場合のみリクエストを処理するよう要求する。 If-Range クライアントがキャッシュにオブジェクトの一部分を持っている場合にパフォーマンスを向上できる。 If-Unmodified-Since If-Modified-Sinceの逆の働きをする Last-Modified サーバオブジェクトの最終更新日時を示す。クライアントはこのヘッダを利用しIf-Modified-Sinceヘッダ等と組み合わせることによって効果を発揮する。 Location サーバがクライアントにリダイレクト先URLを知らせる際に用いられる。一般的にステータスコードが3xx代のレスポンスと共に使われるが201 Createdのレスポンスでも使うことが出来る。Content-Locationヘッダと名前が似ているが全く関係のない別のヘッダであるため注意。 Max-Forwards プロキシサーバ等を経由する際の最大ホップ数を指定する。二重ループなどでサーバから応答が得られない場合の問題解決の際、OPTIONメソッドやTRACEメソッドと共に用いられる。 HTTPステータスコード ステータスコードはクライアントのリクエストが成功したかどうかを示した上で追加情報を提供するいずれも3桁の数字から成る。具体的には100-199が情報提供、200-299が成功を示す。300-399はリダイレクト、400-499はエラーを示す。 セキュリティ技術 Basic認証 HTTP/1.1でBasic認証が定義されており最も単純なセキュリティ技術である。しかし仕様書を読むと定義を書いた著者自身が認証技術に疎いことがよくわかる。『HTTPプロトコル セキュア&スケーラブルなWeb開発』の著者は「基本認証を用いるくらいならなにも使わない方がまし」と著書に書いている。通常サーバは401ステータスコードで応答する。 行末文字はWindowsと同じCRLF。 RFC 2818 - HTTP Over TLS RFC 2817 - Upgrading to TLS Within HTTP/1.1 RFC 2616 - HTTP/1.1 ハイパーテキスト転送プロトコル -- HTTP/1.1 RFC 2068 - HTTP/1.1(初版,RFC 2616 によって obsolete) TS X 0085 2004 - ハイパテキスト転送プロトコル HTTP/1.1 標準仕様書(TS) RFC 1945 - HTTP/1.0 HttpTea Freeware HTTP Logger Studying HTTP
https://w.atwiki.jp/tar0_puzzle/pages/29.html
Chapter 1.3 Exercise 1.29 (define (simpson f a b n) (if (and ( n 0) (even? n)) (simpson-in f a b (/ (- b a) n)) (simpson f a b (+ n 1)))) (define (simpson-in f a b h) (define (g x) (+ (f x) (* 2 (f (+ x h))))) (define (add-2h x) (+ x h h)) (/ (* h (+ (f a) (f b) (* 4 (f (+ a h))) (* 2 (sum g (add-2h a) add-2h (- b h))))) 3)) simpson手続きはnが2以上の偶数になるまで, +1し続ける sum手続きの中身は, n≧2のとき下のΣの中身と同じ. n=2のときはf(a)+4f(a+h)+f(b)になる. シンプソンの公式 名前 Exercise 1.30 (define (sum f a next b) (define (iter a result) (if ( a b) result (iter (next a) (+ result (f a))))) (iter a 0)) ; 評価の順序は違う ; 和が可換なので結果は同じ ; recursive ;(sum identity 1 inc 5) ;(+ 1 (+ 2 (+ 3 (+ 4 (+ 5 0))))) ;= 1+(2+(3+(4+(5+0)))) ; iterative ; result -- (+ 0 1) ; result -- (+ result 2) ; result -- (+ result 3) ; result -- (+ result 4) ; result -- (+ result 5) ;=((((0+1)+2)+3)+4)+5 結合法則が成り立つなら結果は同じ Exercise 1.31 ;; recursive (define (product f a next b) (if ( a b) 1 (* (f a) (product f (next a) next b)))) ;; iterative (define (product-iter f a next b) (define (iter a result) (if ( a b) result (iter (next a) (* result (f a))))) (iter a 1)) ; Wallis Formula (define (pi-product n) (define (square x) (* x x)) (define (pi-term k) (/ (* 4.0 k (+ k 1)) (square (+ k k 1)))) (define (pi-next x) (+ x 1)) (* 4 (product pi-term 1 pi-next n))) Wallisの公式 どちらも収束するから Exercise 1.32 ;; recursive (define (accumulate combiner null-value term a next b) (if ( a b) null-value (combiner (term a) (accumulate combiner null-value term (next a) next b)))) ;; iterative (define (accumu-iter combiner initial-value f a next b) (define (iter a result) (if ( a b) result (iter (next a) (combiner result (f a))))) (iter a initial-value)) (define (sum f a next b) (accumulate (lambda (x y) (+ x y)) 0 f a next b)) (define (product f a next b) (accumulate (lambda (x y) (* x y)) 1 f a next b)) Exercise 1.33 長い... (define (filter-accumu filter combiner null-value term a next b) (if ( a b) null-value (let ((fx (term a))) (if (filter fx) (combiner fx (filter-accumu filter combiner null-value term (next a) next b)) (filter-accumu filter combiner null-value term (next a) next b))))) (define (product-rel-prime n) (filter-accumu (lambda (x) (= (gcd x n) 1)) (lambda (x y) (* x y)) 1 (lambda (x) x) 1 (lambda (x) (+ x 1)) n)) Exercise 1.36 (define (fixed-point-print f guess) (define (print-line i x) (display i) (display " ") (display x) (newline)) (define (try cnt x) (let ((next (f x))) (if (close-enough? x next) next ((lambda () (print-line cnt x) (try (+ cnt 1) next)))))) (try 1 guess)) (define (average x y) (/ (+ x y) 2)) (define (average-dump f) (lambda (x) (/ (+ x (f x)) 2))) (define (ex136a) (fixed-point-print (lambda (x) (/ (* 3 (log 10)) (log x))) 2.0)) (define (ex136b) (fixed-point-print (average-dump (lambda (x) (/ (* 3 (log 10)) (log x)))) 2.0)) ;;(136a) ;;= 33step 4.555532270803653 ;;(136b) ;;= 8step 4.555537551999826 Exercise 1.37 ; continued fraction ;; (cf n d k) = (/ n1 (+ d1 (/ n2 (+ d2 ... (/ nk (+ dk 0))...)))) ; (define (cf n d k) (define (cf-helper i) (if ( i k) 0 (/ (n i) (+ (d i) (cf-helper (+ i 1)))))) (cf-helper 1)) ;; iterative ;; (cf n d k) ;; result -- (/ (n k) (+ (d k) 0)) ;; result -- (/ (n (- k 1)) (+ (d (- k 1)) result)) ;; result -- (/ (n (- k 2)) (+ (d (- k 2)) result)) ;; ... ;; result -- (/ (n 1) (+ (d 1) result)) ;; accumulateでもよさそう? (define (cf-iter n d k) (define (iter i result) (if ( i 1) result (iter (- i 1) (/ (n i) (+ (d i) result))))) (iter k 0)) (define (inversed-golden-ratio k) (cf (lambda (i) 1.0) (lambda (i) 1.0) k)) ;;(inversed-golden-ratio 100) ;;= 0.6180339887498948 Continued-Fractionのページ Exercise 1.38,39 ;-- ex.1.38 ;; Euler s contnued-fraction expansion of e ; (define (euler-e k) (+ 2 (cf (lambda (i) 1.0) (lambda (i) (if (= (remainder i 3) 2) (* (+ (quotient i 3) 1) 2.0) 1.0)) k))) ;-- ex.1.39 ;; continued-fraction expansion of tan(x) ; by J.H.Lambert (1770) ; ;http //mathworld.wolfram.com/Tangent.html (define (tan-cf x k) (/ x (+ 1 (cf (lambda (i) (* x x -1)) (lambda (i) (+ i i 1)) k)))) Exercise 1.41 ; (double arg)はargを2回適用する手続きを返す ; (double double)はdoubleを2回適用する手続きを返す == argを4回適用する手続きを返す手続き ;; (define (quadruple arg) (lambda (x) (arg (arg (arg (arg x)))))) と同じ ; (double (double double)) は (double double)を2回適用する手続きを返す ; ;--訂正 2010-3-1 ;= (lamda (proc) (quadruple (quadruple proc)))と同じ ;= (lambda (proc) (lambda (x) (quadruple (proc (proc (proc (proc x)))))) ;= (lambda (proc) (lambda (x) (proc (proc (… (proc x) …))))) ;= procを16回適用する手続きを返す手続き ; ;**ここからウソついた. ので上に訂正 2010-3-1 ; (quadruple (quadruple (quadruple (quadruple arg)))) と同じ ;**ここまで. ; (((double (double double)) inc) 5) ;= 5+16=21 Exercise 1.46 (define (iterative-improve good-enough? improve) (define (iter f guess) (if (good-enough? guess) guess (iter f (improve guess)))) ((lambda (x) x) iter)) (define (fixed-point-2 f guess) (define tolerance 0.00001) (define (close-enough? guess) ( (abs (- guess (f guess))) tolerance)) ((iterative-improve close-enough? f) f guess))
https://w.atwiki.jp/katsuhiro/pages/26.html
HTTPメソッド GET情報取得メソッド POST PUT DELETEリソース削除メソッド HTTPリクエスト ポストデータ HTMLのPOST指定のformから送信されるデータ JSPのrequestオブジェクトから下記のメソッドで情報を取得できるgetParameter getParameterValues リクエストボディのセットされて送信される クエリ情報 URLの末尾の"?"以降に「キー=値」のセットで付加される簡易な情報 複数のセットがある場合は" "で連結される URLに直接指定するほか、HTMLのGET指定のformから送信されるデータ formのmethod属性が省略された場合もクエリ情報として送信される JSPのrequestオブジェクトから下記のメソッドで情報を取得できるgetParameter クエリ情報に特殊文字が含まれる場合は、あらかじめエンコードしておく必要がある(form経由の場合はエンコード不要) URLに使用可能な文字数を超えて送信できない(2,083文字)FireFoxの場合は制限が無いが、動作が遅くなる場合もあるらしい データがアドレス欄に露出してしまう ヘッダ情報 「名前: 値」形式 種類一般ヘッダ(要求/応答時双方で利用) エンティティヘッダ(コンテンツに関する情報) リクエスト(要求)ヘッダ(クライアントに関する情報) レスポンス(応答)ヘッダ(その他) JSPのrequestオブジェクトから下記のメソッドで情報を取得できるgetHeaderNames ただし、情報取得専用メソッドが存在するヘッダについてはそちらを使う ■ヘッダ例 種類 ヘッダ名 概要 一般 Cache-Control キャッシュルールを規定する Connection プロキシ(中間)サーバで削除すべきHTTPヘッダを指定 Date コンテンツ生成日時 Pragma キャッシングを利用するか(下位互換用のヘッダ) Transfer-Encoding コンテンツの転送エンコーディング方式 リクエスト Accept クライアント対応コンテンツの種類(優先順) Accept-Language クライアント対応言語(優先順) Authorization 認証情報 Cookie クライアントに保存されたクッキーデータを送信 Host 要求先ホスト名 If-Modified-Since 指定日時以降にコンテンツが更新されている場合にのみ、サーバはデータを送信 Proxy-Authorization プロキシサーバ用の認証情報 Range 要求リソース範囲 Referer リンク元URI User-Agent クライアントの種類 レスポンス ETag リソースを一意に特定するためのキー情報(コンテンツが更新されていないかどうかを特定する場合などに使用) Location クライアントに新しいURIに移動するように促す Server サーバの種類 Set-Cookie クライアントにクッキーを送信 WWW-Authenticate クライアントに認証を要求 エンティティ Content-Encoding コンテンツのエンコーディング方式 Content-Length コンテンツサイズ Content-Type コンテンツの種類 Expires コンテンツの有効期限 Last-Modified コンテンツの最終更新年月日 クッキー サーバがクライアントに対して自由に読み書きできるテキスト クッキーの有効期限負数をセットした場合、ブラウザの終了時に削除される 0をセットした場合、その場で削除される 1以上をセットすると、その秒数分保持される クッキーのデメリットクライアント側でクッキーを受け入れないように設定することが可能 クライアント側でクッキーの改竄や削除が可能 実データがネットワーク上を流れてしまう クッキーの制約1つのホスト、ドメイン当たりの最大個数は20個(総数では300個以内) クッキー1つあたりの最大サイズは4096バイト セッション情報 長期間にわたって情報を保持するには不向き ユーザがブラウザを開いている間だけアプリケーション内で情報を受け渡しする場合にはクッキーより手軽でセキュアな仕組み sessionJSPの暗黙オブジェクトの1つ 下記のメソッドを使って読み書きするgetAttribute setAttribute @pageディレクティブのsession属性がfalseの場合は使えない sessionが不要の場合はsession属性をfalseにしておく(サーバリソースの節約) sessionを使うと… クライアントからサーバにリクエスト送信 サーバからのレスポンスにSet-Cookieヘッダの値としてセッションIDが付加される(JSESSIONID) クライアントからサーバに2回目以降のリクエスト送信時、Cookieヘッダの値として、受け取ったJSESSIONIDを付加して送る サーバをそのセッションIDに該当するセッションを使って処理をし、レスポンスを返す セッションの破棄方法明示的な破棄(session.invalidate()) 有効期限を設定する(session.setMaxInactiveInteval()) web.xmlにセッションの有効期限を設定する session-config session-timeout セッションの寿命明示的に破棄されるか有効期限を過ぎない限り、クライアントを閉じてもサーバ上で生き続ける ieHTTPHeaders http //www.blunck.info/iehttpheaders/iehttpheaders.html ⇒IE上でHTTPによる通信内容をトレースするツール
https://w.atwiki.jp/partial/pages/13.html
mouse Logicool® Performance Optical Mouse G400 http //www.logicool.co.jp/ja-jp/gaming/mice-keyboard-combos/devices/8259 ヲチモノ- 【マウス】ロジクール 『G400』 購入・レビュー http //watchmonoblog.blog71.fc2.com/blog-entry-1514.html Wireless Trackball M570 http //www.logicool.co.jp/ja-jp/mice-pointers/trackballs/devices/7365 ヲチモノ- Razerの新ハイブリッドマウス『Razer Mamba 2012』を借りてみた http //watchmonoblog.blog71.fc2.com/blog-entry-1518.html 【PC Watch】 SteelSeries、8ボタン付きのゲーミングマウス「Sensei」 http //pc.watch.impress.co.jp/docs/news/20110812_467407.html?ref=rss ヲチモノ- レーザー+光学式のデュアルセンサーマウス『Epic Gear Meduza』 http //watchmonoblog.blog71.fc2.com/blog-entry-1535.html case Thermaltake - Japan - Overseer RX-I - VN700M1W2N http //jp.thermaltake.com/products-model.aspx?id=C_00001803 アキバ総研-半密閉タイプの静音PCケース! COOLERMASTER「Silencio 550」発売-[秋葉原総合情報サイト] http //akiba.kakaku.com/pc/1107/16/223000.php エルミタージュ秋葉原 [リリース] Antec、二層構造遮音パネルで静音化が図られた待望の新作「SOLO II」 http //www.gdm.or.jp/pressrelease/201108/29_03.html エルミタージュ秋葉原 [リリース] CORSAIR、最大10基のファンが搭載できるCarbideシリーズミドルタワー「CC9011011-WW」発売 http //www.gdm.or.jp/pressrelease/201108/25_02.html Speaker ヲチモノ- 【スピーカー】JBL 『JBL CAS-33』 レビューチェック http //watchmonoblog.blog71.fc2.com/blog-entry-1039.html N2-20U03 製品情報 コンピュータ関連製品の代理店事業 l 株式会社リンクスインターナショナル http //www.links.co.jp/items/krator-speaker/n220u03.html ヲチモノ- 【スピーカー】KRATOR 『Neso 02 N2-20U03』 レビューチェック http //watchmonoblog.blog71.fc2.com/blog-entry-1513.html headphone Razer から世界初の10ドライバ 7.1chサラウンドヘッドセット Tiamat 7.1 http //japanese.engadget.com/2011/08/22/razer-10-7-1ch-tiamat-7-1/ 4Gamer.net ― Razer,リアル7.1chヘッドセット「Tiamat 7.1」を発表。2.2chモデル「Tiamat 2.2」とともに2011年第4四半期に発売(Razer) http //www.4gamer.net/games/023/G002318/20110823008/ Razer Orca | Razer 日本の公式サイト http //jp.razerzone.com/product.php?act=page pgid=74 pid=1 ヲチモノ- 【ヘッドホン】ソニー 『MDR-DS7500』 レビューチェック http //watchmonoblog.blog71.fc2.com/blog-entry-1757.html gadget ヲチモノ- 保存機能を搭載した『Boogie Board』が秋に登場か!? http //watchmonoblog.blog71.fc2.com/blog-entry-1334.html ヲチモノ- 【USBモニター】レノボ 『ThinkVision LT1421』 レビューチェック http //watchmonoblog.blog71.fc2.com/blog-entry-1726.html ヲチモノ- 【コントローラー】Razer 『Razer Hydra』 画像や動画など http //watchmonoblog.blog71.fc2.com/blog-entry-1496.html エルミタージュ秋葉原 [リリース] Thermaltake、バックライト付の2.5インチ大型液晶のPSUテスター「Dr. Power II」発売 http //www.gdm.or.jp/pressrelease/201109/07_06.html Thermaltake Global Product 電源装置 その他 Dr.PowerⅡ AC0015 http //www.thermaltake.co.jp/product_info.aspx?PARENT_CID=C_00001477 id=C_00001478 name=Dr.Power+%E2%85%A1 ov=n ovid= parent_cp=
https://w.atwiki.jp/stgbuilder/pages/367.html
<upload video list> ニコニコ動画にアップロードされているSB製ゲームの動画リストです。 (STIR) SB広報用動画 http //www.nicovideo.jp/watch/nm11827264 (NOILA-TEM) NOILA-TEM TYPE1でクリア(コンティニューしまくり):http //www.nicovideo.jp/watch/sm1208300 (D-Diver) (A) (ASCII FORCE) ASCII FORCE ver068 1面プレイ 画質修正版:http //www.nicovideo.jp/watch/sm3975774 ASCII FORCE ver091 A~B面プレイ:http //www.nicovideo.jp/watch/sm5005088 ASCII FORCE ver097 A・C・E+α面プレイ:http //www.nicovideo.jp/watch/sm5658353 ASCII FORCE ver0.99d 新機体でA・C・F・LASTまで:http //www.nicovideo.jp/watch/sm5865571 (CARAVAN STAR) CARAVAN STAR Ver0.99A 機体Aで普通にプレイ:http //www.nicovideo.jp/watch/sm2483391 Caravan Star Ver1.09b テストプレイ版:http //www.nicovideo.jp/watch/sm5823781 (BURIKIN) BURIKING ver0.03 勢いで作ったテスト版:http //www.nicovideo.jp/watch/sm5696639 (SSSS) (the one case) the one case v016 1~3面 (自作STG製作者プレイ動画):http //www.nicovideo.jp/watch/sm4454655 the one case v016 4面~ED (自作STG製作者プレイ動画):http //www.nicovideo.jp/watch/sm4454939 the one case v100c Extra (自作STG製作者プレイ動画):http //www.nicovideo.jp/watch/sm6552811 「the One Case」チャレンジモード・普通のプレイ:http //www.nicovideo.jp/watch/sm13924138 「the One Case」Extraモード・普通のプレイ:http //www.nicovideo.jp/watch/sm14054439 【安全プレイ】the One Case extra mode:http //www.nicovideo.jp/watch/sm14039035 (幸せの魔法石) しあわせの魔法石 v005α 0~2面 (自作STG製作者プレイ動画):http //www.nicovideo.jp/watch/sm5760449 しあわせの魔法石V006(初心者向けモード)プレイ動画:http //www.nicovideo.jp/watch/sm7283189 しあわせの魔法石V006(初心者向けモード)プレイ動画その2:http //www.nicovideo.jp/watch/sm7292362 しあわせの魔法石v0.07を熟練者モードでプレイ 1/2:http //www.nicovideo.jp/watch/sm7856548 しあわせの魔法石v0.07を熟練者モードでプレイ 2/2:http //www.nicovideo.jp/watch/sm7856769 (tekitou 1) 自作シューティング tekitou1:http //www.nicovideo.jp/watch/sm3473922 自作シューティング tekitou1 ver1.02 HELL:http //www.nicovideo.jp/watch/sm4124021 (tekitou 2) 自作シューティング Mana Blast Bossrush The Hell:http //www.nicovideo.jp/watch/sm5763210 自作シューティング Mana Blast イベント配布版ムービー:http //www.nicovideo.jp/watch/sm5731882 自作シューティング Mana Blast ver0.2 2面まで:http //www.nicovideo.jp/watch/sm4540139 (tekitou 3) tekitou3+:http //www.nicovideo.jp/watch/sm5820056 ALEXANDRITE part4:http //www.nicovideo.jp/watch/sm5841727 (トリフィドの日) 自作STG:http //www.nicovideo.jp/watch/sm2877485 自作STG 3(トリフィドの日):http //www.nicovideo.jp/watch/sm2967828 自作STG 4(トリフィドの日):http //www.nicovideo.jp/watch/sm3074430 自作STG 5(背景擬似3D化):http //www.nicovideo.jp/watch/sm3950517 (ストライクウィッチーズSTG) ストライクウィッチーズSTG!:http //www.nicovideo.jp/watch/sm4657331 ストライクウィッチーズSTG!プレリュードダッシュプラス:http //www.nicovideo.jp/watch/sm5096030 魔女達の長い午後(スト魔女STG)http //www.nicovideo.jp/watch/sm6747235 【体験版】ストライクウィッチーズSTG!1面C:http //www.nicovideo.jp/watch/sm6229810 【体験版】ストライクウィッチーズSTG!1面E:http //www.nicovideo.jp/watch/sm6466776 【体験版】ストライクウィッチーズSTG!2面C:http //www.nicovideo.jp/watch/sm6229886 【体験版】ストライクウィッチーズSTG!4面C:http //www.nicovideo.jp/watch/sm6229948 【体験版】ストライクウィッチーズSTG!2面E:http //www.nicovideo.jp/watch/sm6466822 【体験版】ストライクウィッチーズSTG!4面E:http //www.nicovideo.jp/watch/sm6466880 スト魔女STG(シャーリィ・ルッキーニ)http //www.nicovideo.jp/watch/sm7587289 (アルギネイロス) (Banisher) 【STG】 Banisher - バニッシャー 【プレイ動画】:http //www.nicovideo.jp/watch/sm7672806 (天災) 天災HeartBEAT!!の体験版をプレイしてみた 1面:http //www.nicovideo.jp/watch/sm4819697 天災HeartBEAT!!の体験版をプレイしてみた 2面:http //www.nicovideo.jp/watch/sm4819974 (THE 触シュー) 自作STGプレイ動画:http //www.nicovideo.jp/watch/sm6583807 THE Shokushoo #1:[http //www.youtube.com/watch?v=iwkTTP1dYgE feature=related] THE Shokushoo #2:[http //www.youtube.com/watch?v=d0dmNSNO4oc eurl=http //tryangle07.blog32.fc2.com/blog-entry-154.html feature=player_embedded] 触シュー体験版v093 1~2面 プレイ動画:http //www.nicovideo.jp/watch/sm7743183 (SHATTERED CHRONICLE) SHATTERED CHRONICLE Test ver1.21普通にプレイ動画:http //www.nicovideo.jp/watch/sm7364621 SHATTERED CHRONICLE(シャッタードクロニクル)デモPLAY ステージ1:http //www.nicovideo.jp/watch/sm7212274 SHATTERED CHRONICLE(シャッタードクロニクル)デモPLAY ステージ2:http //www.nicovideo.jp/watch/sm7215629 SHATTERED CHRONICLE(シャッタードクロニクル)デモPLAY ステージ3:http //www.nicovideo.jp/watch/sm7215629 SHATTERED CHRONICLE体験版プレイ動画:http //www.nicovideo.jp/watch/sm7236197 SHATTERED CHRONICLE体験版1-3面プレイ:http //www.nicovideo.jp/watch/sm7223617 SHATTERED CHRONICLE<Type-EDGE>体験版プレイ動画:http //www.nicovideo.jp/watch/sm7249092 SHATTERED CHRONICLE体験版プレイ動画<Type-FIRE>:http //www.nicovideo.jp/watch/sm7266336 画質&音質テスト用Rev.3<SHATTERED CHRONICLE(シャッタードクロニクル)>:http //www.nicovideo.jp/watch/sm7216736 (東方褌探記) [新作東方STG]東方褌探記:http //www.nicovideo.jp/watch/sm1724462 (Christmasdius) ファミコン風自作STG『Christmasdius』:http //www.nicovideo.jp/watch/sm5648066 (STAR SHIP) ShootingGameBuilder習作『STAR SHIP』:http //www.nicovideo.jp/watch/sm6496645 (ZEX) (再三に及ぶテスト)-AnotheRZEX-1stボス戦:http //www.nicovideo.jp/watch/sm7412257 (再テスト)-AnotheRZEX-:http //www.nicovideo.jp/watch/sm7375022 自作STGアップテスト:http //www.nicovideo.jp/watch/sm7271856 (Moon Soldier X) 从SX3-レーベル第一弾・奥スクロール弾幕STG『Moon Soldier X』:http //www.nicovideo.jp/watch/sm6604770 (Three Invaders) Three Invaders 全ボス対決:http //www.nicovideo.jp/watch/sm7097969 (Angel Weapon) Angel Weapon ヘタレプレイ 難易度HARD 自機ブレイブヒーロー パート1:http //www.nicovideo.jp/watch/sm7808807 Angel Weapon ヘタレプレイ 難易度HARD 自機ブレイブヒーロー パート2:http //www.nicovideo.jp/watch/sm7809117 Angel Weapon 通しプレイ 難易度ハード 自機ギャラクシーエッジ パート1:http //www.nicovideo.jp/watch/sm7787517 Angel Weapon 通しプレイ 難易度ハード 自機ギャラクシーエッジ パート2:http //www.nicovideo.jp/watch/sm7787701 Angel Weapon 製作者VS魔王:http //www.nicovideo.jp/watch/sm7097969 (雷生音流(仮)) STG製作中 ~ 雷生音流(仮) ~:http //www.nicovideo.jp/watch/sm7780782 (エターナル・ネギ・フィーバー) エターナル・ネギ・フィーバー Ver.3.0b (難易度:SHOOTER):http //www.nicovideo.jp/watch/sm13703083 (デザエモン製 良ゲーム) デザエモンでガンダムシューティングを作ってみた:http //www.nicovideo.jp/watch/sm1843704 デザエモンでスーパーマリオシューティングを作ってみた:http //www.nicovideo.jp/watch/sm1504336 デザエモンでスーパーマリオランドを作ってみた:http //www.nicovideo.jp/watch/sm10449972 デザエモンでドラえもんを作ってみたhttp //www.nicovideo.jp/watch/sm10448345 デザエモンでたこルカのシューティングゲームを作ってみたhttp //www.nicovideo.jp/watch/sm6231659
https://w.atwiki.jp/skmt200x/pages/108.html
ヘッダ Section 1 Global EnvironmentServer HTTP応答ヘッダの設定 サーバ設定ファイルのルートディレクトリの指定 PIDファイルのパス タイムアウト時間 キープアライブ 最大キープアライブリクエスト数 キープアライブタイムアウト時間 (調査・編集中)先行してforkを行うWEBサーバの設定 (調査・編集中) 待ち受けポート番号 モジュール読み込み 外部設定ファイルの読み込み 拡張ステータス情報保存の有無 実行ユーザ・グループ Section 2 'Main' server configurationサーバ管理者メールアドレス サーバ名 (サーバが自分自身の名前とポートを決定する方法の設定 ドキュメントルートの定義 (調査・編集中) ドキュメントルート配下に適用される設定 ユーザディレクトリモジュールの設定 ユーザディレクトリ配下に適用される設定 ディレクトリインデックスの設定 分散設定ファイルの設定 (調査・編集中) MIMEタイプ設定ファイル デフォルトのMIMEタイプの設定 MIME MAGICモジュールの設定 DNSルックアップの設定 メモリマッピングの有無 sendfileサポートの有無 エラーログの設定 ログレベルの設定 ログフォーマットの設定 (調査・編集中) カスタムログの設定 カスタムログファイルの設定 カスタムログファイルの設定 サーバ生成ドキュメントのフッタの設定 アイコン画像ディレクトリの設定 アイコン画像ディレクトリに適用される設定 Web DAVモジュールの設定 (調査・編集中) CGIディレクトリの設定 ディレクトリインデックスの設定 (調査・編集中) アイコン画像の設定(設定ごとの関連付け) アイコン画像の設定(拡張子ごとの関連付け) デフォルトのアイコン画像の設定 (調査・編集中) (調査・編集中) インデックス対象外の設定 言語の設定 言語優先順位の設定 (調査・編集中) デフォルトの文字セットの設定 (調査・編集中) (調査・編集中) (調査・編集中) (調査・編集中) (調査・編集中) (調査・編集中) (調査・編集中) (調査・編集中) (調査・編集中) (調査・編集中) エラードキュメントの設定 (調査・編集中) サーバステータス表示設定 サーバ情報表示設定 プロキシモジュールの設定 プロキシ経由アクセス時のViaヘッダの有効・無効の設定 コンテンツキャッシュストレージ管理モジュールの設定 Section 3 Virtual Hosts TOPへ編集 ヘッダ # # This is the main Apache server configuration file. It contains the # configuration directives that give the server its instructions. # See URL http //httpd.apache.org/docs/2.2/ for detailed information. # In particular, see # URL http //httpd.apache.org/docs/2.2/mod/directives.html # for a discussion of each configuration directive. # # # Do NOT simply read the instructions in here without understanding # what they do. They re here only as hints or reminders. If you are unsure # consult the online docs. You have been warned. # # The configuration directives are grouped into three basic sections # 1. Directives that control the operation of the Apache server process as a # whole (the global environment ). # 2. Directives that define the parameters of the main or default server, # which responds to requests that aren t handled by a virtual host. # These directives also provide default values for the settings # of all virtual hosts. # 3. Settings for virtual hosts, which allow Web requests to be sent to # different IP addresses or hostnames and have them handled by the # same Apache server process. # # Configuration and logfile names If the filenames you specify for many # of the server s control files begin with "/" (or "drive /" for Win32), the # server will use that explicit path. If the filenames do *not* begin # with "/", the value of ServerRoot is prepended -- so "logs/foo.log" # with ServerRoot set to "/etc/httpd" will be interpreted by the # server as "/etc/httpd/logs/foo.log". # TOPへ編集 Section 1 Global Environment ### Section 1 Global Environment # # The directives in this section affect the overall operation of Apache, # such as the number of concurrent requests it can handle or where it # can find its configuration files. # Server HTTP応答ヘッダの設定 # # Don t give away too much information about all the subcomponents # we are running. Comment out this line if you don t mind remote sites # finding out what major optional modules you are running ServerTokens OS HTTP応答ヘッダの出力が「Server Apache/2.0.41 (Unix)」のように、OSの情報を含む形式で出力される。 参考 http //www.apache.jp/manual/mod/core.html#servertokens サーバ設定ファイルのルートディレクトリの指定 # # ServerRoot The top of the directory tree under which the server s # configuration, error, and log files are kept. # # NOTE! If you intend to place this on an NFS (or otherwise network) # mounted filesystem then please read the LockFile documentation # (available at URL http //httpd.apache.org/docs/2.2/mod/mpm_common.html#lockfile ); # you will save yourself a lot of trouble. # # Do NOT add a slash at the end of the directory path. # ServerRoot "/etc/httpd" 通常RHEL系OSの設定では、/etc/httpdを指定する。 設定ファイル中の相対パスは、このベースディレクトリからの相対パスになる。 PIDファイルのパス # # PidFile The file in which the server should record its process # identification number when it starts. # PidFile run/httpd.pid タイムアウト時間 # # Timeout The number of seconds before receives and sends time out. # Timeout 120 それぞれの処理(イベント)について、リクエストを失敗させるまでにサーバが待つ時間。 GETリクエストを受け取るのにかかる総時間 POSTやPUTリクエストにて、TCPパケットが届くまでの待ち時間 レスポンスを返す際、TCPのACKが帰ってくるまでの時間 参考 http //www.apache.jp/manual/mod/core.html#timeout参考 http //www.apache.jp/manual/mod/core.html#timeout キープアライブ # # KeepAlive Whether or not to allow persistent connections (more than # one request per connection). Set to "Off" to deactivate. # KeepAlive Off 1回のページのリクエストで、沢山のHTTPリクエストを発行する必要がある場合、キープアライブはOnに設定した方がパフォーマンスは向上する。 参考 http //www.apache.jp/manual/mod/core.html#keepalive 最大キープアライブリクエスト数 # # MaxKeepAliveRequests The maximum number of requests to allow # during a persistent connection. Set to 0 to allow an unlimited amount. # We recommend you leave this number high, for maximum performance. # MaxKeepAliveRequests 100 参考 http //www.apache.jp/manual/mod/core.html#maxkeepaliverequests キープアライブタイムアウト時間 # # KeepAliveTimeout Number of seconds to wait for the next request from the # same client on the same connection. # KeepAliveTimeout 15 (調査・編集中) ## ## Server-Pool Size Regulation (MPM specific) ## 先行してforkを行うWEBサーバの設定 # prefork MPM # StartServers number of server processes to start # MinSpareServers minimum number of server processes which are kept spare # MaxSpareServers maximum number of server processes which are kept spare # ServerLimit maximum value for MaxClients for the lifetime of the server # MaxClients maximum number of server processes allowed to start # MaxRequestsPerChild maximum number of requests a server process serves IfModule prefork.c StartServers 8 MinSpareServers 5 MaxSpareServers 20 ServerLimit 256 MaxClients 256 MaxRequestsPerChild 4000 /IfModule 参考 http //httpd.apache.org/docs/2.2/ja/mod/prefork.html (調査・編集中) # worker MPM # StartServers initial number of server processes to start # MaxClients maximum number of simultaneous client connections # MinSpareThreads minimum number of worker threads which are kept spare # MaxSpareThreads maximum number of worker threads which are kept spare # ThreadsPerChild constant number of worker threads in each server process # MaxRequestsPerChild maximum number of requests a server process serves IfModule worker.c StartServers 2 MaxClients 150 MinSpareThreads 25 MaxSpareThreads 75 ThreadsPerChild 25 MaxRequestsPerChild 0 /IfModule 参考 http //httpd.apache.org/docs/2.2/ja/mod/worker.html 待ち受けポート番号 # # Listen Allows you to bind Apache to specific IP addresses and/or # ports, in addition to the default. See also the VirtualHost # directive. # # Change this to Listen on specific IP addresses as shown below to # prevent Apache from glomming onto all bound IP addresses (0.0.0.0) # #Listen 12.34.56.78 80 Listen 80 モジュール読み込み # # Dynamic Shared Object (DSO) Support # # To be able to use the functionality of a module which was built as a DSO you # have to place corresponding `LoadModule lines at this location so the # directives contained in it are actually available _before_ they are used. # Statically compiled modules (those listed by `httpd -l ) do not need # to be loaded here. # # Example # LoadModule foo_module modules/mod_foo.so # LoadModule auth_basic_module modules/mod_auth_basic.so LoadModule auth_digest_module modules/mod_auth_digest.so LoadModule authn_file_module modules/mod_authn_file.so #LoadModule authn_alias_module modules/mod_authn_alias.so LoadModule authn_anon_module modules/mod_authn_anon.so LoadModule authn_dbm_module modules/mod_authn_dbm.so LoadModule authn_default_module modules/mod_authn_default.so LoadModule authz_host_module modules/mod_authz_host.so LoadModule authz_user_module modules/mod_authz_user.so LoadModule authz_owner_module modules/mod_authz_owner.so LoadModule authz_groupfile_module modules/mod_authz_groupfile.so LoadModule authz_dbm_module modules/mod_authz_dbm.so LoadModule authz_default_module modules/mod_authz_default.so LoadModule ldap_module modules/mod_ldap.so LoadModule authnz_ldap_module modules/mod_authnz_ldap.so LoadModule include_module modules/mod_include.so LoadModule log_config_module modules/mod_log_config.so LoadModule logio_module modules/mod_logio.so LoadModule env_module modules/mod_env.so LoadModule ext_filter_module modules/mod_ext_filter.so LoadModule mime_magic_module modules/mod_mime_magic.so LoadModule expires_module modules/mod_expires.so LoadModule deflate_module modules/mod_deflate.so LoadModule headers_module modules/mod_headers.so LoadModule usertrack_module modules/mod_usertrack.so LoadModule setenvif_module modules/mod_setenvif.so LoadModule mime_module modules/mod_mime.so LoadModule dav_module modules/mod_dav.so LoadModule status_module modules/mod_status.so LoadModule autoindex_module modules/mod_autoindex.so LoadModule info_module modules/mod_info.so LoadModule dav_fs_module modules/mod_dav_fs.so LoadModule vhost_alias_module modules/mod_vhost_alias.so LoadModule negotiation_module modules/mod_negotiation.so LoadModule dir_module modules/mod_dir.so LoadModule actions_module modules/mod_actions.so LoadModule speling_module modules/mod_speling.so LoadModule userdir_module modules/mod_userdir.so LoadModule alias_module modules/mod_alias.so LoadModule rewrite_module modules/mod_rewrite.so LoadModule proxy_module modules/mod_proxy.so LoadModule proxy_balancer_module modules/mod_proxy_balancer.so LoadModule proxy_ftp_module modules/mod_proxy_ftp.so LoadModule proxy_http_module modules/mod_proxy_http.so LoadModule proxy_connect_module modules/mod_proxy_connect.so LoadModule cache_module modules/mod_cache.so LoadModule suexec_module modules/mod_suexec.so LoadModule disk_cache_module modules/mod_disk_cache.so LoadModule file_cache_module modules/mod_file_cache.so LoadModule mem_cache_module modules/mod_mem_cache.so LoadModule cgi_module modules/mod_cgi.so LoadModule version_module modules/mod_version.so # # The following modules are not loaded by default # #LoadModule cern_meta_module modules/mod_cern_meta.so #LoadModule asis_module modules/mod_asis.so 外部設定ファイルの読み込み # # Load config files from the config directory "/etc/httpd/conf.d". # Include conf.d/*.conf 拡張ステータス情報保存の有無 # # ExtendedStatus controls whether Apache will generate "full" status # information (ExtendedStatus On) or just basic information (ExtendedStatus # Off) when the "server-status" handler is called. The default is Off. # #ExtendedStatus On 実行ユーザ・グループ # # If you wish httpd to run as a different user or group, you must run # httpd as root initially and it will switch. # # User/Group The name (or #number) of the user/group to run httpd as. # . On SCO (ODT 3) use "User nouser" and "Group nogroup". # . On HPUX you may not be able to use shared memory as nobody, and the # suggested workaround is to create a user www and use that user. # NOTE that some kernels refuse to setgid(Group) or semctl(IPC_SET) # when the value of (unsigned)Group is above 60000; # don t use Group #-1 on these systems! # User apache Group apache TOPへ編集 Section 2 Main server configuration ### Section 2 Main server configuration # # The directives in this section set up the values used by the main # server, which responds to any requests that aren t handled by a # VirtualHost definition. These values also provide defaults for # any VirtualHost containers you may define later in the file. # # All of these directives may appear inside VirtualHost containers, # in which case these default settings will be overridden for the # virtual host being defined. # サーバ管理者メールアドレス # # ServerAdmin Your address, where problems with the server should be # e-mailed. This address appears on some server-generated pages, such # as error documents. e.g. admin@your-domain.com # ServerAdmin root@localhost サーバ名 # # ServerName gives the name and port that the server uses to identify itself. # This can often be determined automatically, but we recommend you specify # it explicitly to prevent problems during startup. # # If this is not set to valid DNS name for your host, server-generated # redirections will not work. See also the UseCanonicalName directive. # # If your host doesn t have a registered DNS name, enter its IP address here. # You will have to access it by its address anyway, and this will make # redirections work in a sensible way. # #ServerName www.example.com 80 ServerName www.sapporobeer.co.jp 80 (サーバが自分自身の名前とポートを決定する方法の設定 # # UseCanonicalName Determines how Apache constructs self-referencing # URLs and the SERVER_NAME and SERVER_PORT variables. # When set "Off", Apache will use the Hostname and Port supplied # by the client. When set "On", Apache will use the value of the # ServerName directive. # UseCanonicalName Off ドキュメントルートの定義 # # DocumentRoot The directory out of which you will serve your # documents. By default, all requests are taken from this directory, but # symbolic links and aliases may be used to point to other locations. # DocumentRoot "/var/www/html" (調査・編集中) # # Each directory to which Apache has access can be configured with respect # to which services and features are allowed and/or disabled in that # directory (and its subdirectories). # # First, we configure the "default" to be a very restrictive set of # features. # Directory / Options FollowSymLinks AllowOverride None /Directory # # Note that from this point forward you must specifically allow # particular features to be enabled - so if something s not working as # you might expect, make sure that you have specifically enabled it # below. # ドキュメントルート配下に適用される設定 # # This should be changed to whatever you set DocumentRoot to. # Directory "/var/www/html" # # Possible values for the Options directive are "None", "All", # or any combination of # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews # # Note that "MultiViews" must be named *explicitly* --- "Options All" # doesn t give it to you. # # The Options directive is both complicated and important. Please see # http //httpd.apache.org/docs/2.2/mod/core.html#options # for more information. # Options Indexes FollowSymLinks ディレクトリインデックス作成の許可と、シンボリックリンクを辿ることの許可設定 # # AllowOverride controls what directives may be placed in .htaccess files. # It can be "All", "None", or any combination of the keywords # Options FileInfo AuthConfig Limit # AllowOverride None 分散設定ファイル(.htaccess)で許可するディレクティヴの種類の設定。 この場合はなし。 # # Controls who can get stuff from this server. # Order allow,deny Allow from all /Directory ユーザディレクトリモジュールの設定 # # UserDir The name of the directory that is appended onto a user s home # directory if a ~user request is received. # # The path to the end user account public_html directory must be # accessible to the webserver userid. This usually means that ~userid # must have permissions of 711, ~userid/public_html must have permissions # of 755, and documents contained therein must be world-readable. # Otherwise, the client will only receive a "403 Forbidden" message. # # See also http //httpd.apache.org/docs/misc/FAQ.html#forbidden # IfModule mod_userdir.c # # UserDir is disabled by default since it can confirm the presence # of a username on the system (depending on home directory # permissions). # UserDir disable ユーザディレクトリ機能は無効 # # To enable requests to /~user/ to serve the user s public_html # directory, remove the "UserDir disable" line above, and uncomment # the following line instead # #UserDir public_html /IfModule ユーザディレクトリ配下に適用される設定 # # Control access to UserDir directories. The following is an example # for a site where these directories are restricted to read-only. # # Directory /home/*/public_html # AllowOverride FileInfo AuthConfig Limit # Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec # Limit GET POST OPTIONS # Order allow,deny # Allow from all # /Limit # LimitExcept GET POST OPTIONS # Order deny,allow # Deny from all # /LimitExcept # /Directory ディレクトリインデックスの設定 # # DirectoryIndex sets the file that Apache will serve if a directory # is requested. # # The index.html.var file (a type-map) is used to deliver content- # negotiated documents. The MultiViews Option can be used for the # same purpose, but it is much slower. # DirectoryIndex index.html index.html.var 分散設定ファイルの設定 # # AccessFileName The name of the file to look for in each directory # for additional configuration directives. See also the AllowOverride # directive. # AccessFileName .htaccess (調査・編集中) # # The following lines prevent .htaccess and .htpasswd files from being # viewed by Web clients. # Files ~ "^\.ht" Order allow,deny Deny from all /Files MIMEタイプ設定ファイル # # TypesConfig describes where the mime.types file (or equivalent) is # to be found. # TypesConfig /etc/mime.types デフォルトのMIMEタイプの設定 # # DefaultType is the default MIME type the server will use for a document # if it cannot otherwise determine one, such as from filename extensions. # If your server contains mostly text or HTML documents, "text/plain" is # a good value. If most of your content is binary, such as applications # or images, you may want to use "application/octet-stream" instead to # keep browsers from trying to display binary files as though they are # text. # DefaultType text/plain MIME MAGICモジュールの設定 # # The mod_mime_magic module allows the server to use various hints from the # contents of the file itself to determine its type. The MIMEMagicFile # directive tells the module where the hint definitions are located. # IfModule mod_mime_magic.c # MIMEMagicFile /usr/share/magic.mime MIMEMagicFile conf/magic /IfModule DNSルックアップの設定 # # HostnameLookups Log the names of clients or just their IP addresses # e.g., www.apache.org (on) or 204.62.129.132 (off). # The default is off because it d be overall better for the net if people # had to knowingly turn this feature on, since enabling it means that # each client request will result in AT LEAST one lookup request to the # nameserver. # HostnameLookups Off メモリマッピングの有無 # # EnableMMAP Control whether memory-mapping is used to deliver # files (assuming that the underlying OS supports it). # The default is on; turn this off if you serve from NFS-mounted # filesystems. On some systems, turning it off (regardless of # filesystem) can improve performance; for details, please see # http //httpd.apache.org/docs/2.2/mod/core.html#enablemmap # #EnableMMAP off sendfileサポートの有無 # # EnableSendfile Control whether the sendfile kernel support is # used to deliver files (assuming that the OS supports it). # The default is on; turn this off if you serve from NFS-mounted # filesystems. Please see # http //httpd.apache.org/docs/2.2/mod/core.html#enablesendfile # #EnableSendfile off エラーログの設定 # # ErrorLog The location of the error log file. # If you do not specify an ErrorLog directive within a VirtualHost # container, error messages relating to that virtual host will be # logged here. If you *do* define an error logfile for a VirtualHost # container, that host s errors will be logged there and not here. # ErrorLog logs/error_log ログレベルの設定 # # LogLevel Control the number of messages logged to the error_log. # Possible values include debug, info, notice, warn, error, crit, # alert, emerg. # LogLevel warn ログフォーマットの設定 # # The following directives define some format nicknames for use with # a CustomLog directive (see below). # LogFormat "%h %l %u %t \"%r\" % s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined LogFormat "%h %l %u %t \"%r\" % s %b" common LogFormat "%{Referer}i - %U" referer LogFormat "%{User-agent}i" agent (調査・編集中) # "combinedio" includes actual counts of actual bytes received (%I) and sent (%O); this # requires the mod_logio module to be loaded. #LogFormat "%h %l %u %t \"%r\" % s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio カスタムログの設定 # # The location and format of the access logfile (Common Logfile Format). # If you do not define any access logfiles within a VirtualHost # container, they will be logged here. Contrariwise, if you *do* # define per- VirtualHost access logfiles, transactions will be # logged therein and *not* in this file. # #CustomLog logs/access_log common カスタムログファイルの設定 # # If you would like to have separate agent and referer logfiles, uncomment # the following directives. # #CustomLog logs/referer_log referer #CustomLog logs/agent_log agent カスタムログファイルの設定 # # For a single logfile with access, agent, and referer information # (Combined Logfile Format), use the following directive # CustomLog logs/access_log combined サーバ生成ドキュメントのフッタの設定 # # Optionally add a line containing the server version and virtual host # name to server-generated pages (internal error documents, FTP directory # listings, mod_status and mod_info output etc., but not CGI generated # documents or custom error documents). # Set to "EMail" to also include a mailto link to the ServerAdmin. # Set to one of On | Off | EMail # ServerSignature On アイコン画像ディレクトリの設定 # # Aliases Add here as many aliases as you need (with no limit). The format is # Alias fakename realname # # Note that if you include a trailing / on fakename then the server will # require it to be present in the URL. So "/icons" isn t aliased in this # example, only "/icons/". If the fakename is slash-terminated, then the # realname must also be slash terminated, and if the fakename omits the # trailing slash, the realname must also omit it. # # We include the /icons/ alias for FancyIndexed directory listings. If you # do not use FancyIndexing, you may comment this out. # Alias /icons/ "/var/www/icons/" アイコン画像ディレクトリに適用される設定 Directory "/var/www/icons" Options Indexes MultiViews AllowOverride None Order allow,deny Allow from all /Directory Web DAVモジュールの設定 # # WebDAV module configuration section. # IfModule mod_dav_fs.c # Location of the WebDAV lock database. DAVLockDB /var/lib/dav/lockdb /IfModule (調査・編集中) # # ScriptAlias This controls which directories contain server scripts. # ScriptAliases are essentially the same as Aliases, except that # documents in the realname directory are treated as applications and # run by the server when requested rather than as documents sent to the client. # The same rules about trailing "/" apply to ScriptAlias directives as to # Alias. # ScriptAlias /cgi-bin/ "/var/www/cgi-bin/" CGIディレクトリの設定 # # "/var/www/cgi-bin" should be changed to whatever your ScriptAliased # CGI directory exists, if you have that configured. # Directory "/var/www/cgi-bin" AllowOverride None Options None Order allow,deny Allow from all /Directory # # Redirect allows you to tell clients about documents which used to exist in # your server s namespace, but do not anymore. This allows you to tell the # clients where to look for the relocated document. # Example # Redirect permanent /foo http //www.example.com/bar # # Directives controlling the display of server-generated directory listings. # ディレクトリインデックスの設定 # # IndexOptions Controls the appearance of server-generated directory # listings. # IndexOptions FancyIndexing VersionSort NameWidth=* HTMLTable (調査・編集中) # # AddIcon* directives tell the server which icon to show for different # files or filename extensions. These are only displayed for # FancyIndexed directories. # AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip アイコン画像の設定(設定ごとの関連付け) AddIconByType (TXT,/icons/text.gif) text/* AddIconByType (IMG,/icons/image2.gif) image/* AddIconByType (SND,/icons/sound2.gif) audio/* AddIconByType (VID,/icons/movie.gif) video/* アイコン画像の設定(拡張子ごとの関連付け) AddIcon /icons/binary.gif .bin .exe AddIcon /icons/binhex.gif .hqx AddIcon /icons/tar.gif .tar AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip AddIcon /icons/a.gif .ps .ai .eps AddIcon /icons/layout.gif .html .shtml .htm .pdf AddIcon /icons/text.gif .txt AddIcon /icons/c.gif .c AddIcon /icons/p.gif .pl .py AddIcon /icons/f.gif .for AddIcon /icons/dvi.gif .dvi AddIcon /icons/uuencoded.gif .uu AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl AddIcon /icons/tex.gif .tex AddIcon /icons/bomb.gif core AddIcon /icons/back.gif .. AddIcon /icons/hand.right.gif README AddIcon /icons/folder.gif ^^DIRECTORY^^ AddIcon /icons/blank.gif ^^BLANKICON^^ デフォルトのアイコン画像の設定 # # DefaultIcon is which icon to show for files which do not have an icon # explicitly set. # DefaultIcon /icons/unknown.gif (調査・編集中) # # AddDescription allows you to place a short description after a file in # server-generated indexes. These are only displayed for FancyIndexed # directories. # Format AddDescription "description" filename # #AddDescription "GZIP compressed document" .gz #AddDescription "tar archive" .tar #AddDescription "GZIP compressed tar archive" .tgz (調査・編集中) # # ReadmeName is the name of the README file the server will look for by # default, and append to directory listings. # # HeaderName is the name of a file which should be prepended to # directory indexes. ReadmeName README.html HeaderName HEADER.html インデックス対象外の設定 # # IndexIgnore is a set of filenames which directory indexing should ignore # and not include in the listing. Shell-style wildcarding is permitted. # IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t 言語の設定 # # DefaultLanguage and AddLanguage allows you to specify the language of # a document. You can then use content negotiation to give a browser a # file in a language the user can understand. # # Specify a default language. This means that all data # going out without a specific language tag (see below) will # be marked with this one. You probably do NOT want to set # this unless you are sure it is correct for all cases. # # * It is generally better to not mark a page as # * being a certain language than marking it with the wrong # * language! # # DefaultLanguage nl # # Note 1 The suffix does not have to be the same as the language # keyword --- those with documents in Polish (whose net-standard # language code is pl) may wish to use "AddLanguage pl .po" to # avoid the ambiguity with the common suffix for perl scripts. # # Note 2 The example entries below illustrate that in some cases # the two character Language abbreviation is not identical to # the two character Country code for its country, # E.g. Danmark/dk versus Danish/da . # # Note 3 In the case of ltz we violate the RFC by using a three char # specifier. There is work in progress to fix this and get # the reference data for rfc1766 cleaned up. # # Catalan (ca) - Croatian (hr) - Czech (cs) - Danish (da) - Dutch (nl) # English (en) - Esperanto (eo) - Estonian (et) - French (fr) - German (de) # Greek-Modern (el) - Hebrew (he) - Italian (it) - Japanese (ja) # Korean (ko) - Luxembourgeois* (ltz) - Norwegian Nynorsk (nn) # Norwegian (no) - Polish (pl) - Portugese (pt) # Brazilian Portuguese (pt-BR) - Russian (ru) - Swedish (sv) # Simplified Chinese (zh-CN) - Spanish (es) - Traditional Chinese (zh-TW) # AddLanguage ca .ca AddLanguage cs .cz .cs AddLanguage da .dk AddLanguage de .de AddLanguage el .el AddLanguage en .en AddLanguage eo .eo AddLanguage es .es AddLanguage et .et AddLanguage fr .fr AddLanguage he .he AddLanguage hr .hr AddLanguage it .it AddLanguage ja .ja AddLanguage ko .ko AddLanguage ltz .ltz AddLanguage nl .nl AddLanguage nn .nn AddLanguage no .no AddLanguage pl .po AddLanguage pt .pt AddLanguage pt-BR .pt-br AddLanguage ru .ru AddLanguage sv .sv AddLanguage zh-CN .zh-cn AddLanguage zh-TW .zh-tw 言語優先順位の設定 # # LanguagePriority allows you to give precedence to some languages # in case of a tie during content negotiation. # # Just list the languages in decreasing order of preference. We have # more or less alphabetized them here. You probably want to change this. # LanguagePriority en ca cs da de el eo es et fr he hr it ja ko ltz nl nn no pl pt pt-BR ru sv zh-CN zh-TW (調査・編集中) # # ForceLanguagePriority allows you to serve a result page rather than # MULTIPLE CHOICES (Prefer) [in case of a tie] or NOT ACCEPTABLE (Fallback) # [in case no accepted languages matched the available variants] # ForceLanguagePriority Prefer Fallback デフォルトの文字セットの設定 # # Specify a default charset for all content served; this enables # interpretation of all content as UTF-8 by default. To use the # default browser choice (ISO-8859-1), or to allow the META tags # in HTML content to override this choice, comment out this # directive # AddDefaultCharset UTF-8 (調査・編集中) # # AddType allows you to add to or override the MIME configuration # file mime.types for specific file types. # #AddType application/x-tar .tgz (調査・編集中) # # AddEncoding allows you to have certain browsers uncompress # information on the fly. Note Not all browsers support this. # Despite the name similarity, the following Add* directives have nothing # to do with the FancyIndexing customization directives above. # #AddEncoding x-compress .Z #AddEncoding x-gzip .gz .tgz (調査・編集中) # If the AddEncoding directives above are commented-out, then you # probably should define those extensions to indicate media types # AddType application/x-compress .Z AddType application/x-gzip .gz .tgz (調査・編集中) # # AddHandler allows you to map certain file extensions to "handlers" # actions unrelated to filetype. These can be either built into the server # or added with the Action directive (see below) # # To use CGI scripts outside of ScriptAliased directories # (You will also need to add "ExecCGI" to the "Options" directive.) # #AddHandler cgi-script .cgi (調査・編集中) # # For files that include their own HTTP headers # #AddHandler send-as-is asis (調査・編集中) # # For type maps (negotiated resources) # (This is enabled by default to allow the Apache "It Worked" page # to be distributed in multiple languages.) # AddHandler type-map var (調査・編集中) # # Filters allow you to process content before it is sent to the client. # # To parse .shtml files for server-side includes (SSI) # (You will also need to add "Includes" to the "Options" directive.) # AddType text/html .shtml AddOutputFilter INCLUDES .shtml (調査・編集中) # # Action lets you define media types that will execute a script whenever # a matching file is called. This eliminates the need for repeated URL # pathnames for oft-used CGI file processors. # Format Action media/type /cgi-script/location # Format Action handler-name /cgi-script/location # (調査・編集中) # # Customizable error responses come in three flavors # 1) plain text 2) local redirects 3) external redirects # # Some examples #ErrorDocument 500 "The server made a boo boo." #ErrorDocument 404 /missing.html #ErrorDocument 404 "/cgi-bin/missing_handler.pl" #ErrorDocument 402 http //www.example.com/subscription_info.html # # # Putting this all together, we can internationalize error responses. # # We use Alias to redirect any /error/HTTP_ error .html.var response to # our collection of by-error message multi-language collections. We use # includes to substitute the appropriate text. # # You can modify the messages appearance without changing any of the # default HTTP_ error .html.var files by adding the line # # Alias /error/include/ "/your/include/path/" # # which allows you to create your own set of files by starting with the # /var/www/error/include/ files and # copying them to /your/include/path/, even on a per-VirtualHost basis. # (調査・編集中) Alias /error/ "/var/www/error/" エラードキュメントの設定 IfModule mod_negotiation.c IfModule mod_include.c Directory "/var/www/error" AllowOverride None Options IncludesNoExec AddOutputFilter Includes html AddHandler type-map var Order allow,deny Allow from all LanguagePriority en es de fr ForceLanguagePriority Prefer Fallback /Directory # ErrorDocument 400 /error/HTTP_BAD_REQUEST.html.var # ErrorDocument 401 /error/HTTP_UNAUTHORIZED.html.var # ErrorDocument 403 /error/HTTP_FORBIDDEN.html.var # ErrorDocument 404 /error/HTTP_NOT_FOUND.html.var # ErrorDocument 405 /error/HTTP_METHOD_NOT_ALLOWED.html.var # ErrorDocument 408 /error/HTTP_REQUEST_TIME_OUT.html.var # ErrorDocument 410 /error/HTTP_GONE.html.var # ErrorDocument 411 /error/HTTP_LENGTH_REQUIRED.html.var # ErrorDocument 412 /error/HTTP_PRECONDITION_FAILED.html.var # ErrorDocument 413 /error/HTTP_REQUEST_ENTITY_TOO_LARGE.html.var # ErrorDocument 414 /error/HTTP_REQUEST_URI_TOO_LARGE.html.var # ErrorDocument 415 /error/HTTP_UNSUPPORTED_MEDIA_TYPE.html.var # ErrorDocument 500 /error/HTTP_INTERNAL_SERVER_ERROR.html.var # ErrorDocument 501 /error/HTTP_NOT_IMPLEMENTED.html.var # ErrorDocument 502 /error/HTTP_BAD_GATEWAY.html.var # ErrorDocument 503 /error/HTTP_SERVICE_UNAVAILABLE.html.var # ErrorDocument 506 /error/HTTP_VARIANT_ALSO_VARIES.html.var /IfModule /IfModule (調査・編集中) # # The following directives modify normal HTTP response behavior to # handle known problems with browser implementations. # BrowserMatch "Mozilla/2" nokeepalive BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0 BrowserMatch "RealPlayer 4\.0" force-response-1.0 BrowserMatch "Java/1\.0" force-response-1.0 BrowserMatch "JDK/1\.0" force-response-1.0 # # The following directive disables redirects on non-GET requests for # a directory that does not include the trailing slash. This fixes a # problem with Microsoft WebFolders which does not appropriately handle # redirects for folders with DAV methods. # Same deal with Apple s DAV filesystem and Gnome VFS support for DAV. # BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully BrowserMatch "MS FrontPage" redirect-carefully BrowserMatch "^WebDrive" redirect-carefully BrowserMatch "^WebDAVFS/1.[0123]" redirect-carefully BrowserMatch "^gnome-vfs/1.0" redirect-carefully BrowserMatch "^XML Spy" redirect-carefully BrowserMatch "^Dreamweaver-WebDAV-SCM1" redirect-carefully サーバステータス表示設定 # # Allow server status reports generated by mod_status, # with the URL of http //servername/server-status # Change the ".example.com" to match your domain to enable. # # Location /server-status # SetHandler server-status # Order deny,allow # Deny from all # Allow from .example.com # /Location サーバ情報表示設定 # # Allow remote server configuration reports, with the URL of # http //servername/server-info (requires that mod_info.c be loaded). # Change the ".example.com" to match your domain to enable. # # Location /server-info # SetHandler server-info # Order deny,allow # Deny from all # Allow from .example.com # /Location プロキシモジュールの設定 # # Proxy Server directives. Uncomment the following lines to # enable the proxy server # # IfModule mod_proxy.c #ProxyRequests On # # Proxy * # Order deny,allow # Deny from all # Allow from .example.com # /Proxy プロキシ経由アクセス時のViaヘッダの有効・無効の設定 # # Enable/disable the handling of HTTP/1.1 "Via " headers. # ("Full" adds the server version; "Block" removes all outgoing Via headers) # Set to one of Off | On | Full | Block # #ProxyVia On コンテンツキャッシュストレージ管理モジュールの設定 # # To enable a cache of proxied content, uncomment the following lines. # See http //httpd.apache.org/docs/2.2/mod/mod_cache.html for more details. # # IfModule mod_disk_cache.c # CacheEnable disk / # CacheRoot "/var/cache/mod_proxy" # /IfModule # # /IfModule # End of proxy directives. TOPへ編集 Section 3 Virtual Hosts ### Section 3 Virtual Hosts # # VirtualHost If you want to maintain multiple domains/hostnames on your # machine you can setup VirtualHost containers for them. Most configurations # use only name-based virtual hosts so the server doesn t need to worry about # IP addresses. This is indicated by the asterisks in the directives below. # # Please see the documentation at # URL http //httpd.apache.org/docs/2.2/vhosts/ # for further details before you try to setup virtual hosts. # # You may use the command line option -S to verify your virtual host # configuration. # # Use name-based virtual hosting. # #NameVirtualHost * 80 # # NOTE NameVirtualHost cannot be used without a port specifier # (e.g. 80) if mod_ssl is being used, due to the nature of the # SSL protocol. # # # VirtualHost example # Almost any Apache directive may go into a VirtualHost container. # The first VirtualHost section is used for requests without a known # server name. # # VirtualHost * 80 # ServerAdmin webmaster@dummy-host.example.com # DocumentRoot /www/docs/dummy-host.example.com # ServerName dummy-host.example.com # ErrorLog logs/dummy-host.example.com-error_log # CustomLog logs/dummy-host.example.com-access_log common # /VirtualHost 最終更新日 [2011-04-15]